该OutputPath属性未设置此项目 [英] The OutputPath property is not set for this project
问题描述
当我尝试编译从86调试模式下我的项目在Visual Studio 2008中我得到这个错误。当我看着属性组抱怨,我看到的输出路径设置的项目。
When I try to compile my project from x86 debug mode in Visual Studio 2008. I am getting this error. When I looked at the property group of the project that complained, I see output path is set.
下面是该文件的.csproj属性组部分。
Here is the property group section for that .csproj file
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<BaseAddress>285212672</BaseAddress>
<FileAlignment>4096</FileAlignment>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
任何一个可以棚灯在此
请注意:当我编译这个调试和任何CPU,它的工作。
NOTE: When I compiled this Debug and Any CPU it worked.
已更新错误1 OutputPath属性未设置此项目。请检查以确保您已指定一个有效的配置/平台组合。配置=DEBUG平台=86
UPDATED: Error 1 The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Debug' Platform='x86'
推荐答案
在Visual Studio中显示项目(比方说A)的错误呢不会有问题。当我看着由行对每个项目的生成线输出窗口,我看到有人抱怨另一个项目(B)中曾就A项目的项目B加入溶液中被称为组装。但它并没有在项目中作为项目引用,而不是从不同的位置集引用简称。该位置包含为平台值为anycpu编译的程序集。然后,我删除从项目中的程序集的引用,并添加B项目作为参考。它开始编译。
不知道,虽然此修复程序是如何工作的。
The error shown in visual studio for the project (Let's say A) does not have issues. When I looked at the output window for the build line by line for each project, I saw that it was complaining about another project (B) that had been referred as assembly in project A. Project B added into the solution. But it had not been referred in the project A as project reference instead as assembly reference from different location. That location contains the assembly which compiled for Platform AnyCpu. Then I removed the assembly reference from the project A and added project B as a reference. It started compiling. Not sure though how this fix worked.
这篇关于该OutputPath属性未设置此项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!