【发布时间】:2019-02-28 01:38:41
【问题描述】:
完成项目构建后,我需要调用批处理文件。
我需要根据我的 c# 项目中的变量进行不同的调用。我能怎么做?这就是我需要的:
AppHelper.cs
public enum CompilingDefines
{
XNET,
NOTIFIER
}
public static CompilingDefines CompiledFor { get; set; }
不同的构建事件调用:
通知器版本
call "$(TargetDir)CreaPacchettoNotifier.bat"
XNET 版本
call "$(TargetDir)CreaPacchettoXNet.bat"
【问题讨论】:
-
嗨,也许像this?
标签: c# visual-studio build post-build-event build-events