从MSBuild项目中检测Visual Studio版本 [英] Detect Visual Studio version from within MSBuild project

查看:101
本文介绍了从MSBuild项目中检测Visual Studio版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

BuildingInsideVisualStudio 属性提供了检测项目是否为在Visual Studio中构建.

The BuildingInsideVisualStudio property provides the ability to detect whether a project is building inside Visual Studio.

有什么方法可以确定正在使用哪个版本的Visual Studio?

Is there any way to determine which version of Visual Studio is being used ?

推荐答案

使用VisualStudioVersion属性.

Use the VisualStudioVersion property.

这篇关于从MSBuild项目中检测Visual Studio版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆