Excellent software and practical tutorials
Visual Studio 2022It is a powerful integrated development environment (IDE) developed by Microsoft, which provides multiple versions to meet the needs of different developers.Visual Studio 2022 Enterprise EditionandProfessional EditionThe main differences and features:
Visual Studio 2022 Enterprise
Visual Studio 2022 Enterprise EditionIt is the most comprehensive version, designed specifically for large development teams and enterprise-level application development, and provides comprehensive development tools and services. The main features include:
Advanced debugging and diagnostic tools: Includes performance analyzer, memory analyzer, and code coverage tools to help developers better optimize and debug applications.
Team collaboration features: It integrates rich team collaboration tools such as code review, task tracking and code management functions, and is suitable for large-scale development teams.
Architecture and design tools: Provides advanced architecture and design tools, such as architecture diagrams, dependency diagrams, and modeling tools, to help developers design and maintain complex systems.
Testing Tools: Includes automated testing framework and code quality tools, supporting unit testing, integration testing and performance testing.
Enterprise-grade support: Provides Microsoft's technical support and update services to ensure that enterprises can obtain the latest features and fixes in a timely manner.
Virtualization and Containers Support: Supports Docker and Kubernetes to facilitate the development and deployment of applications.
Visual Studio 2022 Professional
Visual Studio 2022 ProfessionalIt is a powerful and relatively low-priced version suitable for individual developers and small teams. The main features include:
Comprehensive development tools: Provides similar development tools as the Enterprise Edition, but does not include some advanced features such as advanced debugging tools and enterprise-level support.
Code editing and debugging: Contains comprehensive code editing, debugging, and testing tools suitable for most application development needs.
Integrated Development Environment: Supports multiple programming languages and development platforms, including .NET, C++, Python, and JavaScript.
Teamwork: Supports basic team collaboration features such as Git integration and code sharing, but does not include the advanced collaboration and management features of the Enterprise Edition.
Community Support: Provides community edition and online support, but does not include enterprise-level technical support and priority update services.
Suitable for small projects: Suitable for small teams and individual developers, it provides sufficient functions for personal projects and small team development.
What is the difference between Enterprise Edition and Professional Edition?
- Enterprise Edition: Suitable for large enterprises and development teams, providing comprehensive development, debugging, testing and team collaboration tools, as well as advanced technical support and update services.
- Professional Edition: Suitable for individual developers and small teams, providing powerful development tools and features, but lacking some enterprise-level advanced features and support.
Visual Studio official website:https://visualstudio.microsoft.com/zh-hans/vs/
Download the Windows version online installation package from the official website
Visual Studio 2022 for Windows
VS official website online installation package download channel:Enterprise Edition Download Download from official website
VS official website online installation package download channel:Professional version download Download from official website
VS official website online installation package download channel:Community Edition Download
Download the Mac version from the official website
Visual Studio 2022 for Mac
VS official website online installation package download channel:Download the preview version (preview)
Visual Studio 2022 Graphic Installation Tutorial
1. First download the online installation package and select the version you need. If we need the professional version, just click the professional version to download.
2. After clicking, the browser will pop up the downloaded professional version file. As shown in the figure, the downloaded file is displayed in the download button in the upper right corner of the browser. We can directly click to open the file or click the folder to display its download location in the folder.
3. If the folder shows the download location, find it as shown in the picture below and open it as an administrator. If you open it directly, skip this step.
4. After loading is complete, the following prompt will appear. Please click Continue.
5. Wait patiently to extract files from the official website and obtain installation data
Figure 3.1 Normal download
6. Select the workload to be loaded. Here I use C++ desktop development (please understand what you need. If you are learning C#, please do not select C#, other options). If there are other needs, you can add other workloads. After the selection is completed, we click the installation location
1. Choose .NET desktop development for C# desktop development.
2. If you are doing C# WEB network development, choose ASP.NET and WEB development
3. C language/C++ development, please choose C++ desktop development
4. VB selects general development
Note: You can choose from a variety of options, but they take up space and cause wear and tear during operation. There is no need to install something that is not needed.
If you want to install other ones later, you can open and install them again.
7. You can choose a disk other than C disk. Please read the following instructions carefully.
Do not select the Chinese or symbolic installation directory, do not change the path behind it, just change C to D or other drives
For example, if you install and modify the path, the first and last directories are Professional for the professional version and Enterprise for the enterprise version.
D:\Program Files (x86)\Microsoft Visual Studio\2022\Professional
D:\Program Files (x86)\Microsoft Visual Studio\Shared
Directory: D:\ProgramData\Microsoft\VisualStudio\Packages
Do not put it directly in the root directory, such as D:\ or E:\. It is not allowed, and it cannot be in the same directory.
If your co-isolation component directory is gray and cannot be changed, please click the tutorial below
How to modify the shared components, tools and SDK gray path directory method in Visual Studio (VS)
Shared components, tools, and SDKs must be placed in Chinese or symbol directories, which will lead to a series of problems, such as:
Incorrect usage:
1. D:\
2. D:\Shared Components
3. D:\C++
Caused by:
Unable to activate using the button, prompting that a failure occurred when applying the product button
StorePid.exe - Application Error
The application was unable to start correctly (0xc000007b). Please click OK to close the application.
When running the program, it cannot be generated
Other issues
When we install VS, we may not pay attention to changing the directory or change it incorrectly for the first time, resulting in the shared components being gray and unable to be changed, as follows:
As shown above, we can use Carrot to modify the shared component directory. See the method:
In the lower left corner of the win7-win10 desktop (win11 in the middle of the desktop), find Run in the Microsoft menu (you can also press the WIN Microsoft icon + R on the keyboard at the same time) and open it
After opening, enter regedit
After entering, click OK to enter the flower interface
Next, we will find the VS registration directory information to be modified, as shown below:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup
After finding it, we can see the history directory information of VS installation, and find the last one called SharedInstallationPath. This share is the directory of the component.
In the numerical data, we directly change the directory.
We directly change the official default installation directory to drive D and click OK.
CachePath is the download server directory. You can also change it like changing the component directory.
After the change, we need to close all the VS installations and reopen them.
After VS is opened, find the version you want to install in the available ones, open the installation and modify it directly to see the directory
This is the directory we modified in radish, so that's it.
8. Simplified Chinese is selected by default in the language pack
9. After selecting the workload, installation location and language, click Install in the lower right corner. Set the default settings to default and do not change them.
10. Waiting for download and installation, the process is a bit slow, please wait
11. After the installation is complete, if you are prompted to restart the computer, click Restart as shown in: (Figure 9.1). If there is no prompt as shown in: (Figure 9.2), just start and use it directly.
Figure 9.1
Figure 9.2
12. Log in to your Microsoft account. If you don't have an account, you can skip this step by clicking "Let's talk about it later" or "Skip this for now". You can also log in or not, it's up to you. You can log in later if you want.
13. Here, by default, you need to configure your commonly used development settings for the first run. We previously selected C++ desktop development (C language is also C++), so we choose C++ and then start. For other development, you can choose your own type.
14. Create a new project. You can create the default official test code to test it. If you don’t need it, just click “Continue without code” to enter the VS main interface directly.
15. Select Console Application and click Next. This is the official default test code. Just create it and click Next.
16. When configuring a new project, select an appropriate application save folder. You can change the project name and location yourself, but do not use Chinese characters or symbols. This is common sense when writing code.
17. After clicking Create, wait for a moment to enter the programming interface. We can click the debug button in the figure below to test.
18. When we click debug, it will automatically generate and enter the code Hello World!, proving that our installation is complete and running without any problems, and the entire installation environment is complete.
19. Let's activate our VS, find Help on the main menu bar, click Registration, and open it
20. The activation version will appear, showing the version and using the product key to unlock. We can just click to unlock using the product key.
21. Click and enter the key as shown below, then click Apply.
22. After activation, the license is displayed: the product key has been applied, which means you have activated it and can use it permanently.
23. After the installation is complete, find the VS icon on the desktop. Please find it in the Microsoft menu on the desktop and create a shortcut to the desktop. By default, it is created on the desktop after the installation is complete.
Here is an example from the Win11 menu:
Whatever version you installed is what version, then right click it, as follows
Then right click - send to - desktop shortcut
How to activate after installation:
Click Continue without code
Find Help at the top and click Register in the drop-down
Click the button to complete the application of the product, indicating that it has been activated and can be used permanently