Jump to content

Installing Visual Studio 2019/2022: Difference between revisions

From modding.dev WIKI
Created page with "<!-- Generated: 2025-01-19 18:00:00 Generator: Modding Tutorial Generator v1.0.0 Format: MediaWiki --> == Introduction == This tutorial will guide you through downloading and installing Visual Studio 2019 or Visual Studio 2022. Visual Studio is the integrated development environment (IDE) required to compile and work with modding projects. This guide covers both Visual Studio 2019 and Visual Studio 2022, though Visual Studio 2022 is recommended for newer systems. By t..."
 
Line 29: Line 29:
=== Step 1: Download Visual Studio 2022 ===
=== Step 1: Download Visual Studio 2022 ===


1. **Visit the Visual Studio website**
==== 1. Visit the Visual Studio website ====
  * Go to [https://visualstudio.microsoft.com/downloads/](https://visualstudio.microsoft.com/downloads/)
  * Click on "Download Visual Studio 2022"


2. **Choose your edition**
* Go to [https://visualstudio.microsoft.com/downloads/](https://visualstudio.microsoft.com/downloads/)
  * **Community Edition** (Free) - Recommended for individual developers
* Click on "Download Visual Studio 2022"
  * **Professional Edition** (Paid) - For professional development teams
  * **Enterprise Edition** (Paid) - For large organizations


3. **Download the installer**
==== 2. Choose your edition ====
  * Click "Download" for your chosen edition
 
  * Save the installer file (usually named `vs_community.exe`, `vs_professional.exe`, or `vs_enterprise.exe`)
* '''Community Edition''' (Free) - Recommended for individual developers
* '''Professional Edition''' (Paid) - For professional development teams
* '''Enterprise Edition''' (Paid) - For large organizations
 
===== 3. Download the installer =====
 
* Click "Download" for your chosen edition
* Save the installer file (usually named `vs_community.exe`, `vs_professional.exe`, or `vs_enterprise.exe`)


=== Step 2: Run the Visual Studio Installer ===
=== Step 2: Run the Visual Studio Installer ===


1. **Launch the installer**
===== 1. Launch the installer =====
  * Navigate to your Downloads folder
  * Double-click the Visual Studio installer file
  * If prompted by User Account Control, click "Yes"


2. **Sign in (Optional but Recommended)**
* Navigate to your Downloads folder
  * Sign in with your Microsoft account for additional features
* Double-click the Visual Studio installer file
  * This enables cloud sync of settings and extensions
* If prompted by User Account Control, click "Yes"
 
===== 2. Sign in (Optional but Recommended) =====
 
* Sign in with your Microsoft account for additional features
* This enables cloud sync of settings and extensions


=== Step 3: Select Workloads ===
=== Step 3: Select Workloads ===


1. **Choose Desktop Development with C++**
===== 1. Choose Desktop Development with C++ =====
  * In the installer, select the "Desktop development with C++" workload
 
  * This includes:
* In the installer, select the "Desktop development with C++" workload
    * MSVC v143 compiler toolset
* This includes
    * Windows 10/11 SDK
** MSVC v143 compiler toolset
    * CMake tools for Visual Studio
** Windows 10/11 SDK
    * Windows 10/11 SDK
** CMake tools for Visual Studio
** Windows 10/11 SDK
 
===== 2. Optional: Additional Components =====


2. **Optional: Additional Components**
* '''C++ CMake tools for Windows''' - Helpful for modern C++ projects
  * **C++ CMake tools for Windows** - Helpful for modern C++ projects
* '''Git for Windows''' - Version control integration
  * **Git for Windows** - Version control integration
* '''IntelliCode''' - AI-assisted code completion
  * **IntelliCode** - AI-assisted code completion


3. **Verify Windows SDK Selection**
===== 3. Verify Windows SDK Selection =====
   * Ensure "Windows 10 SDK" or "Windows 11 SDK" is selected
   * Ensure "Windows 10 SDK" or "Windows 11 SDK" is selected
   * The latest version is recommended (usually selected by default)
   * The latest version is recommended (usually selected by default)
Line 74: Line 81:
=== Step 4: Installation Process ===
=== Step 4: Installation Process ===


1. **Start Installation**
===== 1. Start Installation =====
   * Click "Install" to begin the installation process
   * Click "Install" to begin the installation process
   * The installer will download and install all selected components
   * The installer will download and install all selected components


2. **Wait for Completion**
===== 2. Wait for Completion =====
   * Installation typically takes 30-60 minutes depending on your internet speed
   * Installation typically takes 30-60 minutes depending on your internet speed
   * The installer will show progress for each component
   * The installer will show progress for each component


3. **Restart if Required**
===== 3. Restart if Required =====
   * Some components may require a system restart
   * Some components may require a system restart
   * Follow the prompts to restart your computer
   * Follow the prompts to restart your computer
Line 90: Line 97:
=== Step 1: Download Visual Studio 2019 ===
=== Step 1: Download Visual Studio 2019 ===


1. **Access Visual Studio 2019 Downloads**
===== 1. Access Visual Studio 2019 Downloads =====
   * Go to [https://visualstudio.microsoft.com/vs/older-downloads/](https://visualstudio.microsoft.com/vs/older-downloads/)
   * Go to [https://visualstudio.microsoft.com/vs/older-downloads/](https://visualstudio.microsoft.com/vs/older-downloads/)
   * Scroll down to "Visual Studio 2019" section
   * Scroll down to "Visual Studio 2019" section
   * Click "Download" for your preferred edition
   * Click "Download" for your preferred edition


2. **Download the installer**
===== 2. Download the installer =====
   * Save the installer file (usually `vs_community.exe` for Community edition)
   * Save the installer file (usually `vs_community.exe` for Community edition)


=== Step 2: Install Visual Studio 2019 ===
=== Step 2: Install Visual Studio 2019 ===


1. **Run the installer**
===== 1. Run the installer =====
   * Double-click the downloaded installer
   * Double-click the downloaded installer
   * Click "Yes" if prompted by User Account Control
   * Click "Yes" if prompted by User Account Control


2. **Select Workloads**
===== 2. Select Workloads =====
   * Choose "Desktop development with C++"
   * Choose "Desktop development with C++"
   * Ensure Windows 10 SDK is included
   * Ensure Windows 10 SDK is included
   * Click "Install"
   * Click "Install"


3. **Complete Installation**
===== 3. Complete Installation =====
   * Wait for the installation to complete
   * Wait for the installation to complete
   * Restart your computer if prompted
   * Restart your computer if prompted
Line 117: Line 124:
=== Step 1: Update Visual Studio ===
=== Step 1: Update Visual Studio ===


1. **Check for Updates**
===== 1. Check for Updates =====
   * Open Visual Studio
   * Open Visual Studio
   * Go to **Tools** → **Options** → **Environment** → **Updates**
   * Go to **Tools** → **Options** → **Environment** → **Updates**
   * Click "Check for updates"
   * Click "Check for updates"


2. **Install Updates**
===== 2. Install Updates =====
   * If updates are available, click "Update"
   * If updates are available, click "Update"
   * Restart Visual Studio after updates are installed
   * Restart Visual Studio after updates are installed
Line 128: Line 135:
=== Step 2: Verify Installation ===
=== Step 2: Verify Installation ===


1. **Test C++ Compilation**
===== 1. Test C++ Compilation =====
   * Create a new C++ project: **File** → **New** → **Project**
   * Create a new C++ project: **File** → **New** → **Project**
   * Choose "Console App" under Visual C++
   * Choose "Console App" under Visual C++
   * Build the project: **Build** → **Build Solution**
   * Build the project: **Build** → **Build Solution**


2. **Check Windows SDK**
===== 2. Check Windows SDK =====
   * Go to **Tools** → **Options** → **Projects and Solutions** → **VC++ Directories**
   * Go to **Tools** → **Options** → **Projects and Solutions** → **VC++ Directories**
   * Verify Windows SDK paths are present
   * Verify Windows SDK paths are present
Line 141: Line 148:
=== Common Installation Issues ===
=== Common Installation Issues ===


1. **Installation Fails**
===== 1. Installation Fails =====
   * Run installer as Administrator
   * Run installer as Administrator
   * Disable antivirus temporarily during installation
   * Disable antivirus temporarily during installation
   * Check Windows Update for missing prerequisites
   * Check Windows Update for missing prerequisites


2. **Missing Windows SDK**
===== 2. Missing Windows SDK =====
   * Re-run Visual Studio installer
   * Re-run Visual Studio installer
   * Modify installation to include Windows SDK
   * Modify installation to include Windows SDK
   * Ensure correct SDK version is selected
   * Ensure correct SDK version is selected


3. **Compiler Not Found**
===== 3. Compiler Not Found =====
   * Verify "Desktop development with C++" workload is installed
   * Verify "Desktop development with C++" workload is installed
   * Check **Tools** → **Options** → **Projects and Solutions** → **VC++ Directories**
   * Check **Tools** → **Options** → **Projects and Solutions** → **VC++ Directories**
Line 158: Line 165:
=== Performance Optimization ===
=== Performance Optimization ===


1. **Disable Unnecessary Features**
===== 1. Disable Unnecessary Features =====
   * Go to **Tools** → **Options** → **Environment** → **General**
   * Go to **Tools** → **Options** → **Environment** → **General**
   * Disable "Animate environment tools" for better performance
   * Disable "Animate environment tools" for better performance
   * Turn off "Rich client visual experience" if experiencing slowdowns
   * Turn off "Rich client visual experience" if experiencing slowdowns


2. **Configure IntelliSense**
===== 2. Configure IntelliSense =====
   * Go to **Tools** → **Options** → **Text Editor** → **C/C++** → **Advanced**
   * Go to **Tools** → **Options** → **Text Editor** → **C/C++** → **Advanced**
   * Adjust "IntelliSense" settings for your system
   * Adjust "IntelliSense" settings for your system

Revision as of 21:25, 19 October 2025


Introduction

This tutorial will guide you through downloading and installing Visual Studio 2019 or Visual Studio 2022. Visual Studio is the integrated development environment (IDE) required to compile and work with modding projects. This guide covers both Visual Studio 2019 and Visual Studio 2022, though Visual Studio 2022 is recommended for newer systems.

By the end of this tutorial, you will have:

  • A properly configured Visual Studio installation
  • All necessary C++ development tools
  • The correct Windows SDK
  • An environment ready for programming

Prerequisites

Before starting this tutorial, ensure you have:

  • A Windows 10 or Windows 11 computer
  • Administrator privileges on your system
  • At least 8GB of RAM (16GB recommended)
  • At least 20GB of free disk space
  • A stable internet connection for downloading Visual Studio

Installing Visual Studio 2022 (Recommended)

Step 1: Download Visual Studio 2022

1. Visit the Visual Studio website

2. Choose your edition

  • Community Edition (Free) - Recommended for individual developers
  • Professional Edition (Paid) - For professional development teams
  • Enterprise Edition (Paid) - For large organizations
3. Download the installer
  • Click "Download" for your chosen edition
  • Save the installer file (usually named `vs_community.exe`, `vs_professional.exe`, or `vs_enterprise.exe`)

Step 2: Run the Visual Studio Installer

1. Launch the installer
  • Navigate to your Downloads folder
  • Double-click the Visual Studio installer file
  • If prompted by User Account Control, click "Yes"
2. Sign in (Optional but Recommended)
  • Sign in with your Microsoft account for additional features
  • This enables cloud sync of settings and extensions

Step 3: Select Workloads

1. Choose Desktop Development with C++
  • In the installer, select the "Desktop development with C++" workload
  • This includes
    • MSVC v143 compiler toolset
    • Windows 10/11 SDK
    • CMake tools for Visual Studio
    • Windows 10/11 SDK
2. Optional: Additional Components
  • C++ CMake tools for Windows - Helpful for modern C++ projects
  • Git for Windows - Version control integration
  • IntelliCode - AI-assisted code completion
3. Verify Windows SDK Selection
  * Ensure "Windows 10 SDK" or "Windows 11 SDK" is selected
  * The latest version is recommended (usually selected by default)

Step 4: Installation Process

1. Start Installation
  * Click "Install" to begin the installation process
  * The installer will download and install all selected components
2. Wait for Completion
  * Installation typically takes 30-60 minutes depending on your internet speed
  * The installer will show progress for each component
3. Restart if Required
  * Some components may require a system restart
  * Follow the prompts to restart your computer

Installing Visual Studio 2019 (Alternative)

Step 1: Download Visual Studio 2019

1. Access Visual Studio 2019 Downloads
  * Go to [2](https://visualstudio.microsoft.com/vs/older-downloads/)
  * Scroll down to "Visual Studio 2019" section
  * Click "Download" for your preferred edition
2. Download the installer
  * Save the installer file (usually `vs_community.exe` for Community edition)

Step 2: Install Visual Studio 2019

1. Run the installer
  * Double-click the downloaded installer
  * Click "Yes" if prompted by User Account Control
2. Select Workloads
  * Choose "Desktop development with C++"
  * Ensure Windows 10 SDK is included
  * Click "Install"
3. Complete Installation
  * Wait for the installation to complete
  * Restart your computer if prompted

Post-Installation Configuration

Step 1: Update Visual Studio

1. Check for Updates
  * Open Visual Studio
  * Go to **Tools** → **Options** → **Environment** → **Updates**
  * Click "Check for updates"
2. Install Updates
  * If updates are available, click "Update"
  * Restart Visual Studio after updates are installed

Step 2: Verify Installation

1. Test C++ Compilation
  * Create a new C++ project: **File** → **New** → **Project**
  * Choose "Console App" under Visual C++
  * Build the project: **Build** → **Build Solution**
2. Check Windows SDK
  * Go to **Tools** → **Options** → **Projects and Solutions** → **VC++ Directories**
  * Verify Windows SDK paths are present

Troubleshooting

Common Installation Issues

1. Installation Fails
  * Run installer as Administrator
  * Disable antivirus temporarily during installation
  * Check Windows Update for missing prerequisites
2. Missing Windows SDK
  * Re-run Visual Studio installer
  * Modify installation to include Windows SDK
  * Ensure correct SDK version is selected
3. Compiler Not Found
  * Verify "Desktop development with C++" workload is installed
  * Check **Tools** → **Options** → **Projects and Solutions** → **VC++ Directories**
  * Repair Visual Studio installation if necessary

Performance Optimization

1. Disable Unnecessary Features
  * Go to **Tools** → **Options** → **Environment** → **General**
  * Disable "Animate environment tools" for better performance
  * Turn off "Rich client visual experience" if experiencing slowdowns
2. Configure IntelliSense
  * Go to **Tools** → **Options** → **Text Editor** → **C/C++** → **Advanced**
  * Adjust "IntelliSense" settings for your system

Conclusion

You have successfully installed and configured Visual Studio for Source SDK development. Your development environment now includes:

  • Visual Studio 2019 or 2022 with C++ development tools
  • Windows SDK for your operating system
  • All necessary compilers and build tools
  • A properly configured IDE ready for programming

Remember to keep Visual Studio updated regularly to ensure compatibility with the latest tools and security updates.

Sources