Automating .NET 5 webAPI project builds

Schachter, Alon 96 Reputation points
2021-06-27T09:16:09.463+00:00

Hello.

When I'm looking at how VS2019 builds my webAPI project I see a csc.exe execution with many references to .NET5 SDK dlls (dozens) from within the program files folder.
I also see references to 3rd parties that Nuget chose to download into my own user folder in the OS's users folder.
And finally references to the code files themselves.

There must be an easier command to create an automated build without referencing dozens of .NET core dlls for using automated builds with Bamboo.

Developer technologies | .NET | .NET CLI
0 comments No comments
{count} votes

Accepted answer
  1. Schachter, Alon 96 Reputation points
    2021-06-27T16:45:45.823+00:00

    Solved using "dotnet publish" command instead of what VS2019 is using.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.