当我尝试在Visual Studio 2008中从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>
Run Code Online (Sandbox Code Playgroud)
任何人都可以阐明这一点吗?
注意:当我编译这个Debug和任何CPU时,它工作.
更新:错误1未为此项目设置OutputPath属性.请检查以确保您已指定有效的配置/平台组合.Configuration ='Debug'Blatter ='x86'
我希望命令行使用msbuild构建解决方案的特定项目,就像我们使用devenv.com.In devenv.com,我们可以使用以下命令行指定解决方案的项目
devenv.com /Build Release|x86 test.sln /project "testproject"
Run Code Online (Sandbox Code Playgroud)
使用上面的命令行,我可以使用devenv.com在test.sln中构建testproject.对于同一解决方案,msbuild的命令行是什么.
谢谢