Note: For the Visual Studio 2013/2017 version click here.
This extension creates two build macros, SolutionConfiguration and SolutionPlatform, denoting the active solution configuration name and platform. It does so by plugging in the MSBuild infrastructure.
FAQ: 1) Does the extension work in headless builds (devenv.com)? No, and I don't know any way to make it load in such environment. For build farms a good workaround is to set an environment variable with the same name (%SolutionConfiguration%) in the build machine. VS will then copy all environment variables in same name macros. This allows to work seamlessly in both IDE and headless builds.
Changelog:
Source code: https://github.com/ceztko/SolutionConfigurationName
|