Как узнать версию visual studio

от admin

2 ways to check your VS Code version

This short article shows you 2 different ways to see your VS Code (Visual Studio Code) version. The first approach is to use your mouse via the VS Code graphics user interface (GUI) and the second one is to use the command line.

Using VS Code GUI

On Windows, you can see the VS Code version by navigating to Help > About from the menu bar. Advertisements

If you’re using a Mac, just go to Code > About Visual Studio Code:

And you’ll see something like this:

You can find more information about the latest versions via Help > Release Notes.

Using Command Line

Advertisements Open a terminal window and execute one of the following:

Further reading:

You can also check out our Visual Studio Code topic page for more tips and tricks to improve your producibility and coding experience.

How can I check what version/edition of Visual Studio is installed programmatically?

I could read registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0 . However, it doesn’t give me any information about the edition of it — Professional/Ultimate or whatever.

How can I get the information with programmatically (preferably python)?

enter image description here

10 Answers 10

In Visual Studio, the Tab ‘Help’-> ‘About Microsoft Visual Studio’ should give you the desired infos.

You can get the VS product version by running the following command.

nmctwisp's user avatar

Open the installed visual studio software and click the Help menu select the About Microsoft Visual studio—> Get the visual studio Version

Irvin Dominin's user avatar

if somebody needs C# example then:

Run the path in cmd C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe

Its not very subtle, but there is a folder in the install location that carries the installed version name.

C:\Program Files\Microsoft Visual Studio 9.0\Microsoft Visual Studio 2008 Standard Edition — ENU

C:\Program Files\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 Professional — ENU

You could find the install location from the registry keys you listed above.

Alternatively this will be in the registry at a number of places, eg:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Setup\Microsoft Visual Studio 2008 Standard Edition — ENU

There are loads of values and keys with the string in, you can find them by looking for «Microsoft Visual Studio 2010» in the Regedit>Edit>Find function.

Читать:
Как скачать книгу с mybook ru на компьютер

You’d just need to pick the one you want and do a little bit of string matching.

Как я могу проверить, какая версия / выпуск Visual Studio установлена ​​программно?

Я мог читать реестр HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0 . Тем не менее, это не дает мне никакой информации о его выпуске — Professional/Ultimate или что-то в этом роде.

Как я могу получить информацию программно (предпочтительно python)?

Введите описание изображения здесь

задан 23 фев ’11, 07:02

10 ответы

В Visual Studio вкладка «Справка» -> «О Microsoft Visual Studio» должна предоставить вам нужную информацию.

спасибо за ответ, но я забыл упомянуть «программно». — просить

Откройте установленное программное обеспечение Visual Studio и щелкните значок Справка меню выберите «О Microsoft Visual Studio» -> «Получить версию Visual Studio».

ответ дан 22 апр.

если кому-то нужен пример С#, то:

ответ дан 07 мар ’17, в 06:03

Это будет работать, только если Entity Data Model (EDMX) установлена ​​для всех установленных версий Visual Studio. — user3114639

Это не очень тонко, но в месте установки есть папка с названием установленной версии.

например у меня есть:

C:\Program Files\Microsoft Visual Studio 9.0\Microsoft Visual Studio 2008 Standard Edition — ENU

C:\Program Files\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 Professional — ENU

Вы можете найти место установки из ключей реестра, которые вы указали выше.

В качестве альтернативы это будет в реестре в нескольких местах, например:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Setup\Microsoft Visual Studio 2008 Standard Edition — ENU

Есть множество значений и ключей со строкой, вы можете найти их, выполнив поиск «Microsoft Visual Studio 2010» в функции Regedit> Edit> Find.

Вам просто нужно выбрать тот, который вы хотите, и немного сопоставить строки.

какую версию C # я использую

Я совершенно не знаком с С#, поэтому, пожалуйста, не слишком сильно меня бить. Что меня удивляет тем, что я не смог найти этот ответ на SO, поэтому я думаю, что мне не хватает чего-то или чего-то плохого в поисках вещей. BTW, этот вопрос не отвечает, хотя название предполагает, что он должен.

Спасибо за ответы. Сейчас я понял, что это зависит от платформы .NET, но есть ли программный способ выяснить мои рамки? (не переходя в каталог и не проверяя имя моих папок .NET)

Похожие статьи