Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error MSB3073: How do I fix this?

Tags:

3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "copy "C:\Users\jlee\Desktop\10_IPG2.7_4\InitialPowerGadget\Release\EnergyLib.dll" "C:\Users\jlee\Desktop\10_IPG2.7_4\InitialPowerGadget\Bins32\EnergyLib32.dll"
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: copy "C:\Users\jlee\Desktop\10_IPG2.7_4\InitialPowerGadget\EnergyDriver\objfre_win7_x86\i386\EnergyDriver.sys" "C:\Users\jlee\Desktop\10_IPG2.7_4\InitialPowerGadget\Bins32"
3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.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?

like image 855
CodeDoctorJL Avatar asked Nov 11 '13 19:11

CodeDoctorJL


People also ask

How to resolve error MSb3073?

Click Cancel on the pop-up. Goto the error list window and see for compilation errors. Your code has errors, hence the solution hasn't built successfully. Rectify the errors and build again.

What is exited with code?

About. The exit code or exit status is a number returned by a process created by a command line indicating if there was an error or not. an other value means that there was an error.


2 Answers

In my case the problem was that VC++ was trying to copy a .dll file into a system folder. Running it as administrator fixed the problem.

like image 29
ernst Avatar answered Sep 19 '22 13:09

ernst


For anyone else that comes across this question my problem was that the target directory contained spaces i.e.

C:\Users\Administrator\Documents\Visual Studio 2017\projects\blah

So for me the solution was to wrap $(TargetDir) in double quotes i.e.

copy ..\resources\\* "$(TargetDir)" /Y
like image 164
David Avatar answered Sep 19 '22 13:09

David