Sign in to follow this  

Post-Build Event Error in VS 2005

This topic is 4272 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have just got hold of VS2005 professional for work, and I am in the process of converting my 2003 projects over. Everything has worked apart from a problem with the post -build events on some of the projects. In my main solution, I build a lib project, dll project and exe project. Each project has a post-build event. The lib and dll projects are meant to copy the lib/dll to a given folder, and the exe is meant to copy the dll from the dll folder to its root folder. Unfortunatly, only the lib one works. The dll and exe projects don't even attempt to run the command (they do not display the Performing Post-Build Event... text in the output window), yet it works fine if I add commands to the Pre-Build event. The commands are very simple...
copy    release\libEngine.dll ..\..\..\..\dll
copy    ..\..\dll\libEngine.dll *
The commands work perfectly in VS 2003, and work perfectly for the lib project. Does anyone know what might be causing this? Thanks Daisy

Share this post


Link to post
Share on other sites
copy ..\..\dll\libEngine.dll *
What is that supposed to do? That's not valid syntax for the copy command as far as I know.

Having said that, VC should still try to execute the post-build event. It works fine for my DLL projects :/

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
copy ..\..\dll\libEngine.dll *
What is that supposed to do? That's not valid syntax for the copy command as far as I know.


It just copies the file libEngine.dll to the root directory of the project. It might not be valid syntax, but it works fine in vs7.1.

Daisy

Share this post


Link to post
Share on other sites

This topic is 4272 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this