Hướng dẫn cài đặt visual studio 2023 professional năm 2024
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Show
Update Visual Studio
In this articleThis topic discusses how to update a client installation of Visual Studio on Windows. For Visual Studio for Mac, see Update Visual Studio for Mac. Visual Studio must first be installed on the machine before you can update it. If you are an IT Administrator and want to configure your organization's clients to update from a network layout, refer to the Visual Studio Administrators Guide, particularly the section on manage and update a network installation. Before you updateBy default, in order to install, update, or modify Visual Studio, the account performing the update must have administrative permissions on the machine and also must have permissions to the source where the product updates are located (either the internet or an internal location). If you are logged in as a typical user and try to perform one of these commands, then you'll get a User Account Control notice prompting you for admin credentials. Starting in August 2023, an admin can delegate control of updates to standard users by configuring the Visual Studio must be closed before performing an update. We highly recommend saving your work before performing an update. We encourage you to update to the most recent release of Visual Studio 2019 so that you always get the latest features, security fixes, and improvements. And if you'd like to try out our newest version, consider downloading and installing Visual Studio 2022. There are several different ways to update an installation of Visual Studio. You can update through the Visual Studio Installer, you can check for updates or use the Notification hub in the IDE, you can configure Visual Studio to update on close, you can update by running a specific version of the bootstrapper, you can update Visual Studio programmatically, or you can be part of an organization that uses Administrator updates. Here's how to update Visual Studio 2019 using these various methods. Use the Visual Studio InstallerVisual Studio setup features and bug fixes are typically implemented in the installer. The installer is now shipping in the most current release of all currently supported Visual Studio products. This means that in general (unless otherwise specified), all new setup functionality is automatically available and works seamlessly in older versions of the product.
Use the message box in the IDE
Use the Notifications hub in the IDE
Note The Update on close command that is found in both the update notification message box or in the Notification hub is not a permanent setting; it applies only to the current update. It is a way to defer the update to when you voluntarily close Visual Studio. In Visual Studio 2019, the Update on close deferral must be chosen each time you acknowledge or dismiss the notification that the update is available. Manually check for updates in the IDE
Run a specific bootstrapper to update the product to a specific versionIf you're an Enterprise or Professional customer, you can update your instance of Visual Studio 2019 to any specific version that has been released, as long as it's a higher version than what is currently installed. To update your instance of Visual Studio 2019 via this method, navigate to the Visual Studio 2019 release history page, download the bootstrapper that corresponds to the desired update version into your product installation directory, and then double click on it to initiate the update. Customize update settingsThere are several different settings that can be customized to control the update behavior. A few of these settings are native to Visual Studio 2019 and deal with how and when the product bits are downloaded and installed. Other settings, such as the ability to configure the source of the updates, require the presence of the newer Visual Studio 2022 installer. Installation and download behaviors
Configure source location of updatesIf you're in an enterprise environment, then it's possible to configure the location that your client instances look for updates. This is useful in situations where your client installed from a network layout, but you later want the clients to get updates from a different network layout. The ability to configure update locations requires the presence of the newer Visual Studio 2022 installer, which can be obtained by , or by an administrator . For more information about how to use this feature, refer to the . We encourage you to update to the most recent release of Visual Studio 2022 so that you always get the latest features, security fixes, and improvements. There are many different ways to update an installation of Visual Studio. You can update through the Visual Studio Installer, you can check for updates or use the notification hub in the IDE, you configure Visual Studio to update upon close, you can update by running a specific version of the bootstrapper, you can update Visual Studio programmatically, or you can be part of an organization that uses Administrator updates. Here's how to update Visual Studio 2022 using these various methods. Use the Visual Studio Installer
Note Visual Studio setup features and bug fixes are typically implemented in the installer. The installer is now shipping in the most current release of all currently supported Visual Studio products. This means that in general (unless otherwise specified), all new setup functionality is automatically available and works seamlessly in older versions of the product.
Use the message box in the IDE
Use the Notifications hub in the IDE
Note The Update on Close command that is found in both the update notification message box or in the Notification hub is not a permanent setting; it applies only to the current update. It is a way to defer the update to when you voluntarily close Visual Studio. To learn how to configure this setting permanently, see the section. Manually check for updates in the IDE
Run a specific bootstrapper to update the product to a specific versionIf you're an Enterprise or Professional customer, you can update your instance of Visual Studio 2022 to any specific version that has been released, as long as it's a higher version than what is currently installed. To update your instance of Visual Studio 2022 via this method, navigate to the Visual Studio 2022 release history page, download the bootstrapper that corresponds to the desired update version into your product installation directory, and then double-click on it to initiate the update. Customize update settingsThere are several different settings that can be customized to control the update behavior, such as how and when the product bits are downloaded and installed, or where the update source location is. Always Update on Close and other download behaviors
Configure source location of updatesWith Visual Studio 2022, you can now configure where your clients will get their updates from. These update source locations are called channels, and you can find more information about channel purpose and availability in the Visual Studio Release Rhythm documentation. Microsoft makes both the Current and the Preview channels available to everyone, and the . IT Administrators can also configure the update source locations, such as network layouts, that the clients should have access to. Refer to the Visual Studio Administrators Guide for additional approach recommendations, and to the for how to access this functionality programmatically. There are two ways to bring up the Update Settings dialog, which allows you to manually change the channel that your Visual Studio instance should get its updates from.
The Update settings dialog will look something like this. In this example, the Visual studio instance is using the LTSC 17.0 channel. By choosing the correct value in the Update channel dropdown, you can control the source location of future updates for this instance of Visual Studio. Additional things to keep in mind are:
Programmatically update Visual StudioYou can use either the bootstrapper or the installer to programmatically update Visual Studio. For more information, see the online command line documentation. Administrator updatesIf you are part of an organization that centralizes management of software installations, then your enterprise administrator might control how Visual Studio updates your machine. For more about how to control or configure the types of updates your machine can accept, see . Remove out-of-support componentsUsing the , you can now bulk remove components that have transitioned to an out-of-support state. You can manually remove them by using the installer as described below, you can remove them programmatically, or you can have them removed via machine wide policy. Learn more about removing out-of-support components and how it can help keep your software environment secure. To bulk remove out-of-support components manually through the UI you can
All components with an out-of-support label will be deselected and get uninstalled. You can also configure a specific Visual Studio instance to persistently remove all components that transition to an out-of-support state by selecting the option More> Update Settings> Remove all out-of-support components during future updates in the Visual Studio Installer. Once this setting is configured, any component that transitions to an out-of-support state in the future will be removed during the next Visual Studio update for that instance of Visual Studio. Use the latest and greatest installerThe most current release of the installer in the latest version of Visual Studio typically has the most robust and reliable feature set. This functionality will often seamlessly work on lower versioned products. In order to manually acquire the latest version of the installer onto a client machine (like if you wanted the functionality of the latest Visual Studio 2022 installer to govern a Visual Studio 2019 installation), you can do one of the following:
Update from the Microsoft CatalogYou can download an Administrator Update from the Microsoft Update Catalog into the installation directory on your machine, and use it to update your installation by just double-clicking on it to apply the update. Support or troubleshootingSometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance. |