If you use MSBuild 4, you could use Property function
<Import Project="A.proj"
Condition="$(BuildDefinition.Contains('Dist Staging to Dev'))"/>
More Related Contents:
- how to replace string in file using msbuild?
- How get exec task output with msbuild
- Using MSBuild to Build Multiple Configurations
- Microsoft.WebApplication.targets was not found, on the build server. What’s your solution?
- How can I install the VS2017 version of msbuild on a build server without installing the IDE?
- How to set PreProcessorDefinitions as a task propery for the msbuild task
- Why does MSBuild look in C:\ for Microsoft.Cpp.Default.props instead of c:\Program Files (x86)\MSBuild? ( error MSB4019)
- How do I specify the platform for MSBuild?
- MSBuild target package not found
- How can I treat MSB3245 (could not resolve reference) warning as an error?
- List of MSBuild built-in variables
- Is there a good tutorial on MSBuild scripts? [closed]
- task or msbuild.exe with NAnt?
- Including content files in .csproj that are outside the project cone
- What happened to BeforeBuild and other targets in VS2012?
- AfterPublish target not working
- How can I change AssemblyProduct, AssemblyTitle using MSBuild?
- msbuild.exe staying open, locking files
- In MSBuild, can I use the String.Replace function on a MetaData item?
- _CopyWebApplication with web.config transformations
- How to run tasks in parallel in MSBuild
- Build MSBuild target without dependencies
- MSBUILDEMITSOLUTION not working with .NET 4?
- Powershell call msbuild with nested quotation marks
- Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools [duplicate]
- What’s the best way to get TFS to output each project to its own directory?
- How to use command line msbuild to deploy VS2012 Web Site project without precompiling it?
- What does two asterisks together in file path mean?
- TFS Build not transforming web.config as expected
- How can I invoke my MSBuild Target when msbuild.exe starts and when it ends