Sunday, April 22, 2012

Set TargetDirectory of Assembly Using Post-build event command line

Step 1 : open project properties window.

Step 2 : select Build Events tab.


Step 3 : Click Edit Post-build... Button, Post-build command line window will open


write below line into opened window.

xcopy "$(TargetDir) <You Assembly Name>" "<You Assembly Target Path>" /Y

Now onwards when you build assembly it will automatically to target location, no need to copy and paste.

No comments:

Post a Comment