Error Msb3073 The Command Copy
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions error msb3073 the command copy /y you might have Meta Discuss the workings and policies of this
Error Msb3073 Exit Code 1
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers warning msb3021 unable to copy file or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community
Error Msb3073 The Command Xcopy
of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How do I fix MSB3073 error in my post-build event? up vote 11 down vote favorite 4 I'm working on a project that requires that DLLs generated by building my solution to be copied error msb3073 the command exited with code 9009 from the bin folder to another folder, both of which are on my machine, in my C drive. I've written a batch file that uses xcopy to accomplish this, which you can see here: xcopy /s /y /q "C:\Users\scogan\Documents\Visual Studio 2012\Projects\Organizr\Server\bin\Debug\Organizr.Services.dll" "C:\inetpub\wwwroot\AppServer\bin\" xcopy /s /y /q "C:\Users\scogan\Documents\Visual Studio 2012\Projects\Organizr\Server\bin\Debug\Organizr.Services.pdb" "C:\inetpub\wwwroot\AppServer\bin\" Now, I've tried numerous iterations of this file, which is located at: C:\Users\scogan\Desktop\CopyFiles.bat so my post-build event command line looks like this: call C:\Users\scogan\Desktop\CopyFiles.bat I've run this batch file on its own with two text files in folders on my desktop, and it works fine. I've also run it as it is with the files I need to copy on its own, and that works fine, too. However, when I try to run this as a post-build event, I get this output: 1> Organizr -> C:\Users\scogan\Documents\Visual Studio 2012\Projects\Organizr\Client\bin\Debug\Organizr.exe 1> File not found - Organizr.Services.dll 1> 0 File(s) copied 1> 0 File(s) copied 1> File not found - Organizr.Services.pdb 1>c:\Windows\Microsoft.NET\
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site
Error Msb3073 The Command Setlocal
About Us Learn more about Stack Overflow the company Business Learn more about
Error Msb3073 The Command Exited With Code 3
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss error msb3073 exited with code 4 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 VS 2012: Post Build http://stackoverflow.com/questions/17075279/how-do-i-fix-msb3073-error-in-my-post-build-event xcopy error 2 up vote 13 down vote favorite 3 i want to make VS copy the .lib-file it created after the build process to a specific folder. So i went to the project config, post-build event, and entered the following command: if exist $(TargetPath) xcopy "$(TargetPath)" "C:\Users\Incubbus\Documents\Visual Studio 2010\My Libraries\z.lib" /Y But instead of copying the process fails after i click "build" and i http://stackoverflow.com/questions/14014763/vs-2012-post-build-xcopy-error-2 receive the following error: error MSB3073: The command "if exist C:\Users\Incubbus\Documents\Visual Studio 2010\My Libraries\MyNetWorkProject\Debug\IncNetworkLibD.lib xcopy "C:\Users\Incubbus\Documents\Visual Studio 2010\My Libraries\MyNetWorkProject\Debug\IncNetworkLibD.lib" "C:\Users\Incubbus\Documents\Visual Studio 2010\My Libraries\z.lib" /Y :VCEnd" exited with code 2. I am also wondering about the :VCEnd in the command-string of the error message <- Maybe this is the reason? How to get this solved? Any help and hints would be happily consumed :)... partial solution: EDIT: it looks like the renaming part (Inc.lib to z.lib) makes trouble, when xcopy asks whether this is a file or a directory...it works when i just copy the originally named file to a directory instead of copying renamed visual-studio msbuild visual-studio-2012 xcopy post-build-event share|improve this question edited Dec 23 '12 at 21:58 asked Dec 23 '12 at 21:15 Incubbus 81231843 1 Copy/paste the PostBuildEvent from your project file into your question. Don't edit it, make it look exactly the same way. –Hans Passant Dec 23 '12 at 21:48 it looks like the renaming part (Inc.lib to z.lib) makes trouble, when xcopy asks wether this is a file or a directory... this works when i just copy the lib-file to a directory without renaming
/Yresults in...Quote...\Amethyst.targets(62,3): error MSB3073: The command "copy C:\Projects\GCflash\Assets\gc_game_data.xml C:\Projects\GCfacebook\gc\ /Y" exited with code 1.Attempting http://sapphiresteel.com/forum/index.php?topic=595.0;wap2 to add an extra \ after the various $(SolutionDir) parameters in the command line, results in the same exact command executed without http://www.codeproject.com/Questions/1038402/error-MSB-VCEnd-exited-with-code the needed slash and the same error.Please advise.Thanks,Jason Dermot: Try quotes around file names and $(SolutionDir) like this:Code:copy "$(SolutionDir)flash\Assets\gc_game_data.xml" "$(SolutionDir)facebook\gc" /YIf error msb3073 the directory has spaces in it, then Windows will have a problem in interpreting the command.The Pre/Post build commands are just executed by the Windows shell command processor.Dermot Jason King: Hi Dermot,I don't have spaces in my SolutionDir, but I tried the quotes error msb3073 the anyways and that did not help. All my post-build events were working with Amethyst v1.2.Please continue to advise.Thanks,Jason Dermot: Hi Jason,We made a change in 1.3 so that the macros remain unsubstituted in the project file (like they do in C#) rather than being substituted - but that's the only change here.In front of copy try putting echo:Code:echo copy "$(SolutionDir)flash\Assets\gc_game_data.xml" "$(SolutionDir)facebook\gc" /YThen you can see what the copy will be trying to do. Then from the output window paste the copy command into a DOS box and see what it does.So in my output window I see this:Code:Target "AfterBuild" in project "AmethystLibrary2.amproj" Task "Exec" echo copy "C:\Data\TestProjects\AmethystLibrary2flash\Assets\gc_game_data.xml" "C:\Data\TestProjects\AmethystLibrary2facebook\gc" /Y copy "C:\Data\TestProjects\AmethystLibrary2flash\Assets\gc_game_data.xml" "C:\Data\TestProjects\AmethystLibrary2facebook\gc" /YI can then copy the "copy ..." (so to speak) and see what it does w
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ error MSB3073: :VCEnd" exited with code 1. Rate this: Please Sign up or sign in to vote. See more: C++ hi i got this error when i was trying to compile my old code. Last time i don't remember which version i was using. I am using VS C++ for dll creatation. following are errors i got. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "copy "C:\Users\Plug-Ins\reference\mach_vmotion\mach_vmotion\Debug\mach_vmotion.dll" C:\Apps\Mach3\PlugIns\
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1. so how to overcome this errors. Posted 10-Oct-15 19:21pm ep.hobbies293 Add a Solution Comments Garth J Lancaster 11-Oct-15 2:02am you're better off googling for MSB3073 and seeing some of the answers - especially on stackoverflow on what (may be) causing this issue - there's too many reasons and not enough detail from you unfortunately.. Go over your post build steps with a fine tooth comb, looking for write protected files, directories that dont exist, the list is huge Richard MacCutchan 11-Oct-15 3:23am Check that it is not a failure of the copy command, permissi