Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write a post build event 1

Status
Not open for further replies.

Programming2007

Programmer
Joined
Nov 10, 2006
Messages
24
Location
US
Hi all I looked at the website to try to write a successful post build event. My current post build event is:
copy $(TargetPath) $(SolutionDir)\PEGF\$(OutDir)
I get the warning message "Post-Build Event failed". I am able to copy the class file name dll into the solution directory's output folder and it works. I am running this program several times and need to fix the build event. I even wrote the path names manually, for example Post Build Event would be....
copy C:\Documents and Settings\Allyson.ALLYNOTEBOOK\My Documents\iri\pegf\pegf\pegf\Algorithm3\bin\Debug\Algorithm3.dll C:\Documents and Settings\Allyson.ALLYNOTEBOOK\My Documents\iri\pegf\pegf\pegf\PEGF\bin\Debug
......and that fails!!! What could be the problem?????
 
I fixed it, the file paths were too long so I copied it to the C drive which is shorter.
 
I don't think it was that the paths are too long I think the problem was the spaces in the paths.

If you change it to the following it sould work with your current paths:
copy "$(TargetPath)" "$(SolutionDir)\PEGF\$(OutDir)"

-Sean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top