c# - MSB3073 错误代码 9009

标签 c# visual-studio msbuild

我在 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/

相关文章:

c# - Asp.Net 尝试获取 ClientID

C# Moq 如何设置 EF DbContext 扩展方法 ToList() 以返回 mock.Object.Tolist()

windows - 如何安装 Orca - 哪些 Windows SDK 包含 Orca MSI 编辑工具?

msbuild - "Finally"MSBuild 目标

visual-c++ - 在 C++ 项目中使用 x86 平台

c# - F# 谜语 : how to call an overload of a method?

c# - 有没有办法告诉 WebBrowser 组件 C# 不要更改原始 HTML?

visual-studio - 如何以编程方式添加/删除现有项目到解决方案?

c++ - 新的 C++ 警告会提高可靠性吗?

asp.net-core - ASP.NET Core- 生成的 web.config 中的 processPath 错误