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. I fixed it by clean and rebuilt the projects.
I've removed
Platform
environment variable (was BNB or smth like that). The problem is gone.As was said, OutputPath must be set AND it must be placed before
<Import Project="$(WixTargetsPath)" />
in .wixproj fileThe issue had to do with my project configuration. Here is the scenario:
Solution A references:
Solution B (the one I am trying to build) references:
My solution was to create a configuration with the same name for Solution A, rebuild it, and then rebuild Solution B. This fixed the problem.
I strugged with this for a while and then also unloaded, built, and then reloaded the offending project in the solution, and then MSBuild functioned correctly.
In my case, I tried to move the property group that contained my custom configuration down below the standard ones. It solved it for me.