【发布时间】:2016-08-10 09:23:11
【问题描述】:
错误 102 错误 MSB3073:命令“复制 C:\Users\Bike Simulation\Desktop\testing_dll\DrivingSimulator_DLL\example\DrivingSimulatorTextClient....\bin\VS2010\Win32\DrivingSimulatorProxy.dll C:\Users\Bike Simulation \Desktop\testing_dll\DrivingSimulator_DLL\example\DrivingSimulatorTextClient\bin\VS2010\Win32\Release\ :VCEnd" 以代码 1 退出。C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 驾驶模拟器TextClient
我已经看到有关 MSB3073 错误的论坛,但我无法解决我的代码问题。
它可以在另一个系统上运行,但是当我尝试在我的新 PC 上运行代码时,它会弹出此错误。
代码项目建立在软件开发人员提供的示例项目之上。
<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)' != ''"/>
我被定向到 Microsoft.CppCommon.targets 上的这一行
【问题讨论】:
-
以代码 1 退出的命令似乎是 copy 而不是 VCEnd?这些目录名称是否正确,它们是否存在?这也与 C++ 没有太大关系。
-
文件在“C:\Users\Bike Simulation\Desktop\testing_dll\DrivingSimulator_DLL\example\DrivingSimulatorTextClient\bin\VS2010\Win32\Release”中
-
@AshwathNarayan 该命令的详细信息是什么? (项目属性=>构建事件),项目文件夹在桌面,尝试把你的项目放到其他磁盘(例如D:\)
-
@s09 系统只有1个分区
-
@s09 后期构建有命令 copy $(SolutionDir)..\..\bin\VS2010\$(Platform)\DrivingSimulatorProxy.dll $(OutDir)
标签: visual-studio msbuild