Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSB3073 exited with code 1

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

like image 390
Ashwath Narayan Avatar asked Aug 10 '16 09:08

Ashwath Narayan


3 Answers

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.

like image 175
apb_developer Avatar answered Nov 07 '22 15:11

apb_developer


Based on your comment, my solution of move solution folder to C disk fixes that issue.

like image 30
starian chen-MSFT Avatar answered Nov 07 '22 15:11

starian chen-MSFT


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: enter image description here

like image 23
Paweł Piorun Avatar answered Nov 07 '22 16:11

Paweł Piorun