Fix "Unable to Find Package" NuGet Error in Visual Studio C#
When you want to run or install certain software, the documentation may suggest that you check the software's version because some software is dependent on OS and system requirements, CPU frequency, and supported architectures.Visual Studio 2012, for example, is only supported on Windows 7 and later.As a result, knowing it is important.
The process of examining the version and edition of Visual Studio and VS Code that is installed on your computer is not overly complicated, and there are a variety of ways in which we may locate this information.Lets look each of them one by one.
There are various method lets check them one by one.
You can easily check the version of visual studio installed on your computer.Steps are as follows.
1 Open your desire Visual Studio Application.
2 Click on Menu from Title bar
3. Then click on About Microsoft Visual studio
Then you will get the version and edition of Microsoft Visual Studio either in first line or second line as shown below
In my case I have Enterprise Edition 2022(64 bit)
and version is 17.2.6
For this you donot have to open visual studio.You simply need Command line.
1 Just open Command Prompt
2 Type the below command and press Enter
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -property catalog_productDisplayVersion
Please keep in mind that this only works for Visual Studio 2017 and later, as vswhere.exe only exists from Visual Studio 2017.
If you want to check edition type then type below command:
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property productId
This will display you where visual studio is enterprise, community or professional.
Using Apps & features Options we can check version of any installed software.Steps are as follow.
1 Click on Search text field and then type "Apps or remove programs"
2. Then select Apps & Features from the left pane.
Then you will get the list of software (default or third party) installed in your computer.
3. Search for Visual Studio and then click on your installed Visual Studio . In my case I have Visual Studio Enterprise 2022 so I just clicked on it.
This will show the version of Visual Studio below the edition name of visual studio.
There are various method.Lets look them one by one.
The steps are straightforward. It goes like this:
On Windows and Linux Operating System.
1 Open Visual Studio Code (vscode)
2 Click on Help on the title bar
3 Click on About from the list
On MacOS
1 Open Visual Studio Code(VSCode)
2 Click on Code
3 From the list , select About Visual Studio Code
Steps are :
1 Open Command Prompt from anywhere you like
2 Type the following command
code -v
or
code --version
Using Apps & features Options we can check version of any installed software.Steps are as follow.
1Click on Search text field and then type "Add or remove programs". and select it from the list.
2Then select Apps & Features from the left pane.
Then you will get the list of software (default or third party) installed in your computer.
3. Search for Visual Studio Code and then click on your installed Visual Studio Code. In my case I have Microsoft Visual Studio Code(User) so I just clicked on it.
This will show the version of Visual Studio Code below the edition name visual studio Code.
Conclusion:
In this way we can check version and edition of Visual Studio and Visual Studio Code IDE.