Error 1 Error Msb3073 The Command Copy
Contents |
here for a quick overview of the site Help Center error msb3073 the command copy /y Detailed answers to any questions you might have Meta Discuss error msb3073 the command exited with code 1 the workings and policies of this site About Us Learn more about Stack Overflow
Error Msb3073 The Command Xcopy
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Error Msb3073 The Command Exited With Code 9009
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Copy Failed during post-build process up vote 4 down vote favorite I am writing an ASP.NET web application using error msb3073 the command setlocal Visual Studio 2008. The project is mostly unchanged from the default empty project that Visual Studio provides, except for: In Properties->Build->Output, "XML documentation file" is checked and set to "bin\MyProject.XML" In Properties->Build Events, "Post-build event command line:" is set to copy /y "$(TargetDir)$(TargetName).XML" "C:\TEMP\" When I build the project for the first time, or rebuild, the build process completes successfully. If I try to build any time after that, however, the build process fails with this message: ------ Build started: Project: MyProject, Configuration: Debug Any CPU ------ MyProject -> C:\Projects\MyProject\MyProject\bin\MyProject.dll copy /y "C:\Projects\MyProject\MyProject\bin\MyProject.XML" "C:\TEMP\" The system cannot find the file specified. c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(3397,13): error MSB3073: The command "copy /y "C:\Projects\MyProject\MyProject\bin\MyProject.XML" "C:\TEMP\"" exited with code 1. Done building project "MyProject.csproj" -- FAILED. ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== I'm certain that the syntax is correct, because I can perform
here for a quick overview of the site Help Center Detailed answers to any questions you might have
Error Msb3073 The Command Exited With Code 3
Meta Discuss the workings and policies of this site About Us error msb3073 vcend exited with code 1 Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with error msb3073 exited with code 4 us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just http://stackoverflow.com/questions/8401055/copy-failed-during-post-build-process like you, helping each other. Join them; it only takes a minute: Sign up error MSB3073: How do I fix this? up vote 2 down vote favorite 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 http://stackoverflow.com/questions/19914339/error-msb3073-how-do-i-fix-this 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? c++ mfc share|improve this question edited Nov 11 '13 at 19:34 afuzzyllama 4,77342854 asked Nov 11 '13 at 19:32 CodeDoctorJL 1241416 1 possible duplicate of How do I fix MSB3073 error in my post-build event? –afuzzyllama Nov 11 '13 at 19:34 If copy fails then either paths must be invalid, file already exists and you are not forcing overwrite, no permissions to write, etc. It's going to be hard to tell from here without guessing. You can try putting that command into cmd.exe and see what happens. –user2802841 Nov 11 '13 at 19:38 @afuzzyllama That link was one of the first I found when trying to solve my own problem, but the solution from that link seems to be to specific to the problem itself, that it was hard for me to understan
Foundation https://social.msdn.microsoft.com/Forums/vstudio/en-US/9c14fd1c-4c6c-4a5b-ac2a-05a2972036e9/problem-in-running-build-error-msb3073?forum=tfsbuild Server > Team Foundation Server - Build and release management Question 0 Sign in to vote Hi I am trying to run a build using TFS and I geting an error. It looks like it fail on some error msb3073 post events (md directory + copy) of a VS project. Is it a known bug in TFS build ? If I build the solution without using TFS build it works ! Thanks, Error: Solution: MasterSolution.sln, Project: Destinator.PC.Services.Local.csproj, Compilation errors and error msb3073 the warnings C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3089,13): error MSB3073: The command "md C:\console_build\Destinator_IL\PCPortal Master\Sources\PCPortal\DestinatorPC\\Destinator.PC.App\C:\console_build\Destinator_IL\PCPortal Master\Binaries\Release\ copy *.* C:\console_build\Destinator_IL\PCPortal Master\Sources\PCPortal\DestinatorPC\\Destinator.PC.App\C:\console_build\Destinator_IL\PCPortal Master\Binaries\Release\" exited with code 1. Solution: MasterSolution.sln, Project: Destinator.PC.MapsInitoXmlConverter.csproj, Compilation errors and warnings C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3089,13): error MSB3073: The command "md C:\console_build\Destinator_IL\PCPortal Master\Sources\PCPortal\DestinatorPC\\bin copy Destinator.PC.MapsIniToXmlConverter.dll C:\console_build\Destinator_IL\PCPortal Master\Sources\PCPortal\DestinatorPC\\bin" exited with code 1. Wednesday, August 09, 2006 11:20 AM Reply | Quote Answers 0 Sign in to vote Sorry - didn't notice the command in the first post. Here's your issue: when you are building in visual studio, $(OutDir) is a relative path - typically something like "bin\Debug". In a Team Build, $(OutDir) is an absolute path - in your case it is "C:\console_build\Destinator_IL\PCPortal Master\Binaries\Release\". Try the following: md $(SolutionDir)\Destinator.PC.App\bin\$(Configuration) copy *