如何只为调试版本运行Visual Studio生成后事件

拈花ヽ惹草 提交于 2020-08-14 22:35:59

问题:

How can I limit my post-build events to running only for one type of build? 如何将构建后事件限制为仅针对一种构建类型运行? I'm using the events to copy DLLs to a local IIS virtual directory but I don't want this happening on the build server in release mode. 我正在使用事件将DLL复制到本地IIS虚拟目录,但我不希望在发布模式下的生成服务器上发生这种情况。


解决方案:

参考一: https://stackoom.com/question/d2D/如何只为调试版本运行Visual-Studio生成后事件
参考二: https://oldbug.net/q/d2D/How-to-run-Visual-Studio-post-build-events-for-debug-build-only
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!