Enums for Build Flavor and Build Platform in Custom TFS 2010 Build Activities
Are there enums available in the .NET framework that have values for build flavor (Debug, Release) and build platform (Any CPU, x86, x64 etc)? I haven't been able to find anything on MSDN or Google.
It seems unnecessarily cumbersome to create my own.
For context: I'm creating a custom TFS2010 workflow activity that requires flavor and platform info. Currently these are entered in the build definition as free-from strings.
The default TFS build template has a dialog box (a开发者_C百科ccessible in the build definition editor under Process\1.Required\Items to Build\Configurations to Build) that provides drop-down menus with this info pre-populated. I'd like to do something similar.
Where would these enums reside? They have nothing to do with .NET, or C#, but only to the default configuration of Visual Studio.
Are you aware that you can create any number of build configurations? That would mean the "flavor" enum would not have a fixed set of elements.
What are you trying to accomplish with this?
No, there is no enum that contains "build flavor." There are indeed preprocessor definitions that contain at least some of this information. Your .net code should almost never make use of that information.
精彩评论