Error 102 error MSB3073: The command "copy 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" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 DrivingSimulatorTextClient
I have seen the forums for the MSB3073 error, but i am unable to fix the problem on my code.
It works on a another system, but when I try to run the code on my new PC, it pops this error.
The code project is built on a sample project given by the software developer.
<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)' != ''"/>
I get directed to this line on the Microsoft.CppCommon.targets
I was getting the same error using Visual Studio 2017. The compiler was unable to copy a dll to a folder. Later Found that the directory is ReadOnly. Unchecking the ReadOnly option and re-building the project helped me. Hope this helps anyone.
Based on your comment, my solution of move solution folder to C disk fixes that issue.
Same problem happened to me with Visual Studio 2017. Solution was on C drive, unchecking ReadOnly flag didn't solve the issue. What helped was to run Visual Studio as an Administrator.
When you run as Administrator you will see this in the corner of Visual Studio:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With