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.
As Scott S, I've had to delete the "Platform" environment variable.
Then restart VS, and it's ok : no more error message...
If Visual Studio specifically complains that "Platform='BPC'" then you can easily fix this by removing the "Platform" environment variable.
Now restart Visual Studio and you are good to go.
In my case the OutputPath was set property in the project files. But unloading, reloading and then rebuilding fixed it.
Usually this happens when the OutputPath property of the project file is blank. Project files are just MSBuild files. To edit in Visual Studio: Right click on the project, pick "Unload project" then right click on the unloaded project and select "Edit ...".
Look for the Release-Versionincrement property group. It should look something like
The important one there it the OutputPath, does it exist for your project file? If not add it and try again.
I created a new project in a new solution which references to existing projects. This error occurs when I add an existing project (say project 1) and try to build without adding other projects that project 1 references to.
Just make sure all the relating projects are added to the new solution and the error disappears.
I had the same error, so I looked on project settings and there in "Build" section is "Build output path" option. And value was empty. So I filled in "bin\" value a error disappeared. It solved my problem.