我在 VS 2010 上有一个解决方案,该解决方案一直没有错误地构建,然后从哪里开始构建失败并出现以下错误:-
**error MSB3073: The command "xcopy "C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.5.1\Redist\amd64\FaceTrackLib.dll" "C:\Users\HP\Documents\FaceTrackingVisualization\Out\SingleFace\x64\Debug\" /eiycq
xcopy "C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.5.1\Redist\amd64\FaceTrackData.dll" "C:\Users\HP\Documents\FaceTrackingVisualization\Out\SingleFace\x64\Debug\" /eiycq
:VCEnd" exited with code 9009. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113 6 SingleFace**
我不知道,在网上的解决方案中,人们说要查找空格或缩进错误,但我不知道在哪里编辑这些更改。错误将我指向这些代码行,错误行是粗体行
Target Name="PostBuildEvent" Condition="'$(PostBuildEventUseInBuild)'!='false'"
Message Text="Description: %(PostBuildEvent.Message)" Condition="'%(PostBuildEvent.Message)' != '' and '%(PostBuildEvent.Command)' != ''"/
**Exec Command="%(PostBuildEvent.Command)$(BuildSuffix)" Condition="'%(PostBuildEvent.Command)' != ''"/**
/Target
最佳答案
在我的例子中,我不得不将构建后事件中的 $(MSBuildBinPath)\msbuild.exe 更改为“$(MSBuildBinPath)\msbuild.exe”,因为路径包含空白。
附带说明:我只需要在 VS 2013 中执行此操作 - VS 2012 和 2010 都可以在没有引号的情况下处理。
关于c# - MSB3073 错误代码 9009,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13602507/