Skip to content

building on build server and assure projects are correctly build / published #32939

Open
@rekna1

Description

@rekna1

Build workflow on build server

I had the following situation on a buildserver
A dotnet core application that uses DPAPI was build as self contained exe with a version of dotnet 6 that did not support DPAPI.
So I installed that latest SDK on the build server and restarted the server and tried dotnet publish again.
However the dotnet publish command did not (completely?) rebuild the program, so the error persisted. (Did it still included the dotnet runtime from the previous build on the older sdk ?)
It was not until I had manually cleaned all bin and obj folders the program was rebuild correctly and the error disappeared.

So my question is if there is a workflow using the dotnet command, to ensure a full rebuild and publish of the project without having to clean bin / obj folders manually?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions