Home » Visual StudioRSS

MSB3073 error PostBuild event copy exited with code 1 (VS 2010)

In trying to build a test case using NHibernate I've set up the following post-build event in the solution's properties:

copy $(ProjectDir)..\..\SharedLibs\sqlce*.dll $(ProjectDir)$(OutDir)

I get a build error like this:

error MSB3073: The command "copy C:\Documents and Settings\jonesstevenh\my documents\visual studio 2010\Projects\NHibernateClassLibrary\FirstSolution.Tests\..\..\SharedLibs\sqlce*.dll C:\Documents and Settings\jonesstevenh\my documents\visual studio 2010\Projects\NHibernateClassLibrary\FirstSolution.Tests\bin\Debug\" exited with code 1.

The .dll shows up in the target directory, so not sure what this error's telling me.

 

4 Answers Found

 

Answer 1

Hello,

Exit code  1 indicates the dll path is not correct. And could you tell me why there is a * in sqlce*.dll , is the * wildcard character. Since * is not a valid name.

So please make sure the C:\Documents and Settings\jonesstevenh\my documents\visual studio 2010\Projects\NHibernateClassLibrary\FirstSolution.Tests\..\..\SharedLibs\sqlce*.dll is valid.

I hope you could follow up with me.

Thanks

Chao

 

Answer 2

Hello,

I think I got the reason, when the path has a blank, you need to use double quote to quote the path, or you will receive a file not find error. Please see this link I replied, which illustrate on this.

http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/57727fea-e4e5-44fa-a18e-b6a2377e5929

Hope this helps.

Thanks

Chao

 

Answer 3

Hi,

Could you give me some feedback?

Thanks

Chao

 

Answer 4

Hello, Starter

I close this thread by marking it as an answer. If my reply does not help, feel free to unmark it and let me know what the problem is.

Thanks

Chao

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter