Error Msb3073 The Command Copy *undefined
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might error msb3073 the command copy /y have Meta Discuss the workings and policies of this site About error msb3073 the command xcopy Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Error Msb3073 The Command Exited With Code 9009
with 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,
Error Msb3073 The Command Setlocal
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 from the bin folder to another error msb3073 the command exited with code 3 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\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: The command "call C:\Users\scogan\Desktop\CopyFiles.bat" exited with code 4. I've done
> Team Foundation Server - Build and release management Question 0 Sign in to vote I'm building a project in msbuild and it fails to
Error Msb3073 The Command Exited With Code 1
copy a config file even though the path seems to becorrect. I'm not error msb3073 exited with code 4 using any custom targets or tasks.I tried troubleshooting the copy and exec tasks working with relative paths and I error msb3073 exited with code 2 can reproduce the same error wheneverI run msbuild from any directory other than where thefilesI'm trying to copylive(See ProjectX below). I'mwondering if there's a property in my VS project thatis needs http://stackoverflow.com/questions/17075279/how-do-i-fix-msb3073-error-in-my-post-build-event to besetto make sure it knows the relative location ofall the projects in my solution. I do not get this error when I build within Visual Studio 8. The config file is copiedfine. Here's the error in my build. Target PostBuildEvent: copy "iVendSupportToolApp\*.config" "C:\views\hassij01_CVTG_Dev\CVTG_Common\Foundation\Canteen.Data\Canteen.Data.Common\bin\Release\" The system cannot find the path specified. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3089,13): error MSB3073: The command "copy "iVendSupportToolApp\*.config" "C:\views\hassij01_CVTG_Dev\CVTG_Common\Foundation\Canteen.Data\Canteen.Data.Common\bin\Release\"" exited with https://social.msdn.microsoft.com/Forums/vstudio/en-US/553a5f79-3964-4f95-b48e-82abacaea9f0/msbuild-error-msb3073?forum=tfsbuild code 1. Done building target "PostBuildEvent" in project "Canteen.Data.Common.csproj" -- FAILED. Of course I verified that the pathnames are all correct relative to the directory I kick off the build in. Here's my experimentation with the copy task. This is my project file to test the copy task.
build it , This error occurs: “Error 15 error MSB3073 : The command copy exited with code 1”. This project is error msb3073 built with vs2010, it works fine at lab. But at my own computer it failed compiling. The problem is with the post-build event, the solution has eight projects, each error msb3073 the one copy it’s building result to a working directory “bin”, this command failed to find the building result and cause the compiling error.I googled it, I find the answer here. The result is that if the working path has spaces somewhere, you must quotes around the params of copy command, such as changing1copy $sourcedir $targetdir to1copy "$sourcedir" "$targetdir" then problem solved. Prev Archive Next Comments 2013-09-24 Programming4 compilation2 debug3 visual studio2 © 2016 Monk with help from Hexo and Twitter Bootstrap. Theme by Freemind. ▲
you by: barnson, robmen Summary Files Reviews Support Tickets ▾ Bugs Feature Requests Examples Mailing Lists Wiki News Create Ticket View Stats Group Searches Closed Tickets Help Formatting Help #1417 Votive does not set VS2005 variables correctly Milestone: v3.0 Status: closed Owner: Justin Rockwood Labels: votive (347) Updated: 2015-01-23 Created: 2008-11-20 Creator: D K Private: No With Votive 3.0.4318.0 and VS2005 (SP1), I am unable to specify the output directory of the *.msi file through the project property tabs. As a work-around, I added the following "Post-build Event Command Line": copy /y $(TargetPath) $(SolutionDir) Now when I press the "Build Solution" button in VS2005, the output window reports the following (see the "copy" command line): ------ Build started: Project: IPDS_Installer, Configuration: Debug x86 C:\Program Files\WIXv3\bin\candle.exe -dDebug -d"DevEnvDir=Undefined if not building from within Visual Studio" -d"SolutionDir=Undefined if not building a solution or within Visual Studio" -d"SolutionExt=Undefined if not building a solution or within Visual Studio" -d"SolutionFileName=Undefined if not building a solution or within Visual Studio" -d"SolutionName=Undefined if not building a solution or within Visual Studio" -d"SolutionPath=Undefined if not building a solution or within Visual Studio" -dConfiguration=Debug -dOutDir=bin\Debug\ -dPlatform=x86 -dProjectDir=C:\IPDS\Dev\DI3_Installer\ -dProjectExt=.wixproj -dProjectFileName=IPDS_Installer.wixproj -dProjectName=IPDS_Installer -dProjectPath=C:\IPDS Dev\DI3_Installer\IPDS_Installer.wixproj -dTargetDir=C:\IPDS\Dev\DI3_Installer\bin\Debug\ -dTargetExt=.msi -dTargetFileName=IPDS_Installer.msi -dTargetName=IPDS_Installer -dTargetPath=C:\IPDS Dev\DI3_Installer\bin\Debug\IPDS_Installer.msi -out obj\Debug\Product.wixobj -arch x86 -ext "C:\Program Files\WIXv3\bin\WixNetFxExtension.dll" -ext "C:\Program Files\WIXv3\bin\WixUtilExtension.dll" Product.wxs C:\Program Files\WIXv3\bin\Light.exe -ext "C:\Program Files\WIXv3\bin\WixNetFxExtension.dll" -ext "C:\Program Files\WIXv3\bin\WixUtilExtension.dll" -out C:\IPDS\Dev\DI3_Installer\bin\Debug\IPDS_Installer.msi -pdbout C:\IPDS\Dev\DI3_Installer\bin\Debug IPDS_Installer.wixpdb obj\Debug\Product.wixobj copy /y C:\IPDS\Dev\DI3_Installer\bin\Debug IPDS_Installer.msi Undefined if not building a solution or within Visual Studio The syntax of the command is incorrect. C:\Program Files\MSBuild\Microsoft\WiX\v3.0\Wix.targets(1859,5)Error MSB3073: Done building project "IPDS_Installer.wixproj" -- FAILED. Build FAILED. ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped