I have a multi project solution in Visual Studio 2008. I just added a new Configuration called Release-VersionIncrement to the solution, specifying "use release" configuration as baseline. All project files were updated with that configuration. However, when I am trying to compile a specific project using this configuration, I get the following error:
Error 5 The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Release-VersionIncrement' Platform='AnyCPU' C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 539 9 DataConversion
What's happening here? The project compiles fine in Release or Debug configuration.
I had the same problem, and the only solution that helps was to set the Build Configuration Manually in each NCrunch Project.
Open the NCrunch Window, where you can see the Status of each Build and where you can see that the build failes. Right click on the project that fails to build and click on "configure selected component" there you see under "Build Settings" the property "Use build confoguration" set it to e.g. "Debug" and the property "Use build platform" set it to e.g. "AnyCPU". (Please note that the build and configuration settings you set must exist in your konfigration Settings)
Do this for all of your projects, but not for your test project. After this everything works fine for me.
Like "Richard Dingwall" hinted, the problem is related to VS using the display version of "Any CPU" instead of the MSBuild version which actually reads "AnyCPU"
Go into Build/New Build Definition or Edit Build Definition -> Process -> Configurations to build, open the configuration selection dialog and in "Platform" instead of selecting "Any CPU", manually add "AnyCPU"
If anyone is getting this one in his NCrunch logs, check if the
PropertyGroup
defining the values 'Debug'/'Release' and 'AnyCPU'/'x86' located before the property groups using those values in their condition.Worked for me.
I was adding the x64 platform to my solution today, when I ran into this issue.
In my case, the error read:
I knew the
OutputPath
should be fine, since this was an existing, working VS solution. So I moved to the next hint--"a valid combination of Configuration and Platform".Aha! Visual Studio is trying to build
Configuration='Debug', Platform='x64'
. Looking at my project file, I realized that x64 was not listed as one of the possible platforms. In other words, I had the below entries (shortened):Easy fix then: just add x64 entries!
I copy/paste'd the x86 entries, and changed them to use x64. Notice I also modified the paths so these don't overwrite x86 builds:
If you decide to set OutputPath as a param, and your path is like:
bin\Release\\
then remember to add\
at the end like that:/p:OutputPath=bin\Release\\\\
it took me a while to realize it was the caseI had the same problem, I fixed it by adding missing Configurations to the project that was failing.
Under Configuration Column Add
Note: This only happened to be because I have custom configuration and newly created projects didn't have the configuration.