Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

error MSB3073: How do I fix this?

Writer Emily Wong
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?

7

5 Answers

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

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.

2

I had the following situation: I was trying to overwrite write-protected files with an post-build event copy. I need some time to find it out because I copied various files, some were copied with success some not. But for all events an error was displayed. In the example below copy event 4, 5 and 6 failed which was indicated before the error with "Zugriff verweigert" (engl.: access denied):

enter image description here

Get it. I have set up a post build event to run the unit tests automatically after each build. Delete this configure, can solve this.

enter image description here

0

Just add your user to permission for cmd.exe file in system32. that will solve this problem.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy