Reputation: 665
I am new to Visual studio build files, How can I build my application with release settings and Publish application.
Upvotes: 0
Views: 111
Reputation: 1322
I'm not 100% sure if you are only asking about the csproj files / dotnet command, but here is how you can do it within the IDE:
You can switch between debug and release configuration simply by using the drop down:
Or by the Build -> Configuration manager.
To publish, right click on the project and select publish:
For the dotnet
command, I suggest you check the dotnet-build reference where you'll see an example like: dotnet build --configuration Release
As for publishing, check out the dotnet publish command.
Upvotes: 1