使用Pre/Post-build event

      经常遇到某个程序需要在工作机完成而要在测试机测试的情况,使用post-build event可使程序在编译后直接拷贝到测试机(需要测试机开一个有上传权限的目录),使用copy命令就可以把所有文件都拷贝到测试.pre/post-build event command实际就是一个cmd窗口,可以使用任何cmd命令.

找到Pre/Post-build event command:在Visual Stuido里,右键一个工程的属性->build event即可.

 

Advertisements
This entry was posted in internal. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s