문제

I'm checking in projects to TFS, to be deployed to the Azure host.

I want the project(s) to be built and deployed as "Release", not "Debug".

I put this code in my Application_Start:

#if DEBUG 
      throw new System.Exception("An Exception!");
#endif

And the exception is thrown, how do I set the TFS builds to be 'Release'?

도움이 되었습니까?

해결책

When you select Items To Build in your build definition you can specify the configuration(s) you want built.

Configs To Build

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top