最佳答案
在 VisualStudio2008中尝试从 x86调试模式编译项目时。我得到了这个错误。当我查看被投诉的项目的属性组时,我看到输出路径被设置了。
下面是该.csproj 文件的属性组部分
<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 它工作。
更新: Error 1未为此项目设置 OutputPath 属性。请检查以确保您已指定了有效的配置/平台组合。Configuration = ‘ Debug’Platform = ‘ x86’配置 = ‘调试’平台 = ‘ x86’