Search This Blog

Friday, February 5, 2010

How to Add a PostBuild Event Handler

Steps:
1. Right click on Project
2. Go to Properties
3. Go to Build Events
4. In the Text Box for Post-build event command line, write the following:
COPY "$(ProjectDir)filename.xml" "$(TargetDir)filename.xml";
COPY "$(ProjectDir)filename.xml" "$(TargetDir)filename.xml";

When the project would be built, the above command would copy the file(filename.xml) from the Project Directory folder to TargetDir folder.