[英]How do i use Visual Studio 2013 Pre-Build event to exclude a script from build?
I would like to know how to specify a pre build event that will exclude a script from a class library project build. 我想知道如何指定一个预构建事件,该事件将从类库项目构建中排除脚本。
The info in the Microsoft website is lacking actual examples of this. Microsoft网站上的信息缺少实际的示例。
i have a script named _2DRadar.cs hich I need excluded from the build 我有一个名为_2DRadar.cs的脚本,我需要从构建中排除
You don't need a post-build event. 您不需要构建后事件。 (and since that's post -build, it wouldn't make any sense)
(由于这是后构建的,所以没有任何意义)
Just set the Build Action to None. 只需将“生成操作”设置为“无”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.