Skip to content

DotNetCoreBuild: DLL being used by another process, build fails #3041

Answered by patriksvensson
fbd asked this question in Q&A
Discussion options

You must be logged in to vote

@fbd Cake does not do anything special. This is related to the dotnet process not shutting down properly.
Microsoft added the dotnet build-server command just for this.

Try adding this to your script:

Teardown(ctx => {
    Information("Shutting down .NET core SDK tooling...");
    DotNetCoreBuildServerShutdown(
        new DotNetCoreBuildServerSettings {
            MSBuild = true
        });
});

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pascalberger
Comment options

You must be logged in to vote
1 reply
@augustoproiete
Comment options

Comment options

You must be logged in to vote
1 reply
@pascalberger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants