error MSB3073: How do I fix this?(错误 MSB3073:我该如何解决这个问题?)
问题描述
3>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(113,5): error MSB3073: The command "copy "C:UsersjleeDesktop10_IPG2.7_4InitialPowerGadgetReleaseEnergyLib.dll" "C:UsersjleeDesktop10_IPG2.7_4InitialPowerGadgetBins32EnergyLib32.dll"
3>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(113,5): error MSB3073: copy "C:UsersjleeDesktop10_IPG2.7_4InitialPowerGadgetEnergyDriverobjfre_win7_x86i386EnergyDriver.sys" "C:UsersjleeDesktop10_IPG2.7_4InitialPowerGadgetBins32"
3>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1.
我在网上研究,我认为这与相对路径有关;但我不确定.有人可以帮助解释什么是错误的以及如何解决这个问题吗?
I was researching online, I think it has to do something with relative pathing; but I'm not sure. Can someone help explain what is wrong and how to fix this?
推荐答案
对于遇到这个问题的其他人,我的问题是目标目录包含空格,即
For anyone else that comes across this question my problem was that the target directory contained spaces i.e.
C:UsersAdministratorDocumentsVisual Studio 2017projectslah
所以对我来说,解决方案是将 $(TargetDir)
用双引号括起来,即
So for me the solution was to wrap $(TargetDir)
in double quotes i.e.
copy ..
esources\* "$(TargetDir)" /Y
这篇关于错误 MSB3073:我该如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:错误 MSB3073:我该如何解决这个问题?


基础教程推荐
- 常量变量在标题中不起作用 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 这个宏可以转换成函数吗? 2022-01-01