|
|
1
1
由于您不想修改源文件,因此可以使用复制任务将您的scource文件备份到中间目录:
然后在构建之前使用csc任务对其进行编译:
看见 "Preprocessing" each source file before compilation? 了解更多详细信息。 更新以供评论:
可以使用MSBuild命令行指定自定义目标来生成它:
然后,无论生成是失败还是成功,MSBuild都将首先生成自定义生成。 希望这有帮助。 |
|
|
Helic · 引用项目中的Visual Studio生成事件 2 年前 |
|
|
Fardin Jim · React中的HandleError 2 年前 |
|
Sam · 返回Visual Studio中文档注释中的标记 2 年前 |
|
|
Natty · Visual Studio中缺少“代码覆盖率结果” 2 年前 |
|
|
xTMx · 如何修复恢复自定义Nuget软件包的问题? 2 年前 |
|
|
CCarter · 只能在设计器中DependencyObject的DependencyProperty上设置显示“Binding”的WPF ICommand DependencyProperties[重复] 2 年前 |
|
|
Max · VS 2022中的缩放级别在哪里 2 年前 |