Rama Krishna
Rama Krishna

Reputation: 665

Build with the Release settings In Visual Studio 2017 Professional

I am new to Visual studio build files, How can I build my application with release settings and Publish application.

Upvotes: 0

Views: 111

Answers (1)

flyte
flyte

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:

enter image description here

Or by the Build -> Configuration manager.

To publish, right click on the project and select publish:

enter image description here

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

Related Questions