I'm attempting to have a TFS 2012 build definition that contains both solution files and project files.
When the build runs, the solutions don't get build. Instead, I get warnings like:
F:\Source\1\MyCode\src\MySolution.sln.metaproj: The specified solution configuration "Release|AnyCPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
This is caused by a bug that results in Visual Studio using "Any CPU" for the platform for solution files, while it uses "AnyCPU" for project files. See: http://connect.microsoft.com/VisualStudio/feedback/details/503935/msbuild-inconsistent-platform-for-any-cpu-between-solution-and-project
Is there a way to configure my build to make this work despite the issue? I.e., a way to pass a particular platform value to a specific sln build command while passing a different value to other commands?