简体   繁体   English

Visual Studio 2017-如何从ENVDTE获取当前运行的版本

[英]Visual Studio 2017 - How to get the current running edition from ENVDTE

I'm working on a VSIX package port to Visual Studio 2017 and I need to get the running edition from the VSPackage (Enterprise, Community etc..). 我正在使用Visual Studio 2017的VSIX软件包端口,需要从VSPackage(企业,社区等)获取运行版本。

Looking at the ENVDTE interface it's pretty straightforward to get the version number, but not the edition. 查看ENVDTE界面 ,很容易获得版本号,而不是版本。 Up to VS 2013 it was possible at least to retrieve the installed edition from the registry but it seems it's not the case anymore as VS2017 uses a its own private registry . 直到VS 2013为止,至少有可能从注册表中检索已安装的版本但由于VS2017使用自己的私有注册表,因此似乎不再如此。

Does anyone have an idea on how to get the current running Visual Studio 2017 edition? 有谁知道如何获取当前运行的Visual Studio 2017版本吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM