A .NET project I've worked on, has encountered a build error recently. The project had no issues building previously, and this error persists over several development machines I've tried. I've seen similar, but not identical posts in my search, which suggested editing the build commands. How do you edit the build commands for a project, and is there an obvious issue with this xcopy command?
Since the solution has last been built, there have not been any changes. I simply needed to update licensing on several ComponentOne components. I've reverted to the previously built version, which now has the same error. Are there any changes I could have inadvertently made that may have caused an issue?
xcopy C:\Subversion Code\Subversion\Mrw\trunk\MrwMeasureApp\MrwReports C:\Subversion Code\Subversion\Mrw\trunk\MrwMeasureApp\bin\Debug\MrwReports\ /Y
Invalid number of parameters
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(3397,13): error MSB3073: The command "xcopy C:\Subversion Code\Subversion\Mrw\trunk\MrwMeasureApp\MrwReports C:\Subversion Code\Subversion\Mrw\trunk\MrwMeasureApp\bin\Debug\MrwReports\ /Y" exited with code 4.
Done building project "MrwMeasureApp.vbproj" -- FAILED.
Thanks in advance for any insight.
You should wrap your parameters in quotations, like so.
xcopy
"C:\Subversion Code\Subversion\Mrw\trunk\MrwMeasureApp\MrwReports"
"C:\Subversion Code\Subversion\Mrw\trunk\MrwMeasureApp\bin\Debug\MrwReports\"
/Y
Lines broken only for visibility.