28 September 2014

Creating directory and copying files using Build Events

If we need to create any directory while we build the project or need to copy some files, in this case the build events comes really handy. 

To specify these events, navigate to the project properties >> Build Events and write these event for Pre or Post build event.

//Create a directory
md "$(SolutionDir)SomeDirectory\Rosources"

//Copying files
xcopy "$(SolutionDir)SourceFolder\Rosources" "$(SolutionDir)TargetFolder\Rosources" /r /y /f /d

No comments:

Post a Comment