“the outputpath property is not set for this proje

2019-01-16 10:59发布

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.

25条回答
仙女界的扛把子
2楼-- · 2019-01-16 11:08

I had the same problem. I fixed it by clean and rebuilt the projects.

查看更多
爷、活的狠高调
3楼-- · 2019-01-16 11:09

I've removed Platform environment variable (was BNB or smth like that). The problem is gone.

查看更多
小情绪 Triste *
4楼-- · 2019-01-16 11:10

As was said, OutputPath must be set AND it must be placed before <Import Project="$(WixTargetsPath)" /> in .wixproj file

查看更多
霸刀☆藐视天下
5楼-- · 2019-01-16 11:10

The issue had to do with my project configuration. Here is the scenario:

Solution A references:

Project X references Project Y
Project Y

Solution B (the one I am trying to build) references:

Project X Project Z

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.

查看更多
成全新的幸福
6楼-- · 2019-01-16 11:11

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.

查看更多
SAY GOODBYE
7楼-- · 2019-01-16 11:11

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.

查看更多
登录 后发表回答