Is there a way to make Release and Debug build?

I am currently using ASP.NET MVC 5 to build a web application. I always want to have the release build in my bin folder. If I set the configuration of the Release assembly, it will not debug my breakpoints. If I set it to Debug, my build /binwill be a debug build.

Is there a way to generate both assemblies when compiling? That is, one for debugging and the second for release in a folder /bin?

+6
source share
2 answers

There is no way to instruct VS to build more than one configuration during assembly. From the point of view of VS, the build team creates a specific project or solution of projects using a single configuration (debugging and release are just two possible configurations).

However, you can use the post build command to do anything (including starting the build of a different configuration). However, just because you can do something post-build does not mean that it is best practice or even a good idea.

, , , xy. "y" " , , , ?"

, ( ), ? , "", - ", , ". .

, . , , , ( , ).

CI , . CI Visual Studio Online Azure

+3

2019

Visual Studio 2015 .

Menu > Build > Batch Build.., , , , .

Batch build screenshot VS2015

, , : alt + B > T > Enter, .

0

Source: https://habr.com/ru/post/1589146/


All Articles