In MSBuild is it possible to determine if I'm running in Visual Studio

后端 未结 4 1282
情话喂你
情话喂你 2021-02-05 01:36

Are the any MSBuild properties that Visual Studio sets? I\'m looking to have some conditional behavior depending on the version (if any) of visual studio.

4条回答
  •  臣服心动
    2021-02-05 02:38

    Yes, is listed in a project file. It matches the Visual Studio version number.

提交回复
热议问题