1

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'?

Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632

1 Answers1

2

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

Configs To Build

Dylan Smith
  • 22,069
  • 2
  • 47
  • 62
  • NOTE - you should also make sure you turn off debug compilation in your web.config in your web.Release.config transform: – viperguynaz Dec 10 '12 at 22:44