在MSBUILD中,如何指定检查命令行或VS是否启动它的条件? [英] In MSBUILD, how can you specify a condition that check whether command line or VS launched it?
本文介绍了在MSBUILD中,如何指定检查命令行或VS是否启动它的条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个csproj,只有在目标是从Visual Studio内而不是从MSBUILD命令行执行的情况下,才希望在Visual Studio中触发特定文件的打开.我该怎么做?
I have a csproj that I would like to have trigger the opening of a particular file in Visual Studio, only if the target was executed from within Visual Studio, but not from the MSBUILD command line. How do I do this?
推荐答案
查看全文