將 Visual Studio 更新至最新版本Update Visual Studio to the most recent release

我們建議您更新到最新發行的 Visual Studio 2017,使您可以持續取得最新的功能、修正及功能改進。We encourage you to update to the most recent release of Visual Studio 2017 so that you always get the latest features, fixes, and improvements.

此外,如果您想要嘗試最新的版本,請考慮改為下載並安裝 Visual Studio 2019And if you'd like to try out our newest version, consider downloading and installing Visual Studio 2019 instead.

Important

您必須以具有安裝、更新或修改 Visual Studio 之系統管理權限的帳戶登入。You must log on with an account that has administrative permissions to install, update, or modify Visual Studio. 如需詳細資訊,請參閱使用者權限和 Visual StudioFor more information, see User Permissions and Visual Studio.

Note

本主題適用於 Windows 上的 Visual Studio。This topic applies to Visual Studio on Windows. 針對 Visual Studio for Mac,請參閱更新 Visual Studio for MacFor Visual Studio for Mac, see Update Visual Studio for Mac.

更新 Visual Studio 2017 15.6 版或更新版本Update Visual Studio 2017 version 15.6 or later

我們已簡化安裝及更新的體驗,讓使用者可以更輕鬆地從 IDE 內直接使用它們。We've streamlined the installation and update experience to make it easier to use directly from within the IDE. 以下是從 Visual Studio 15.6 版及更新版本進行升級的方法。Here's how to update from version 15.6 and later to newer versions of Visual Studio.

使用 [通知] 中樞Using the Notifications hub

有更新可用時,Visual Studio 會顯示相對應的通知旗標。When there's an update, there's a corresponding notification flag in Visual Studio.

  1. 儲存您的工作。Save your work.

  2. 選擇通知旗標以開啟 [通知] 中樞,然後選擇您要安裝的更新。Choose the notification flag to open the Notifications hub, and then choose the update that you want to install.

    使用 [通知] 中樞更新 Visual Studio 2017Update Visual Studio 2017 by using the Notification hub

    Tip

    Visual Studio 2017 的版本更新是累積性的,因此請一律選擇安裝版本號碼為最新的更新。An update for an edition of Visual Studio 2017 is cumulative, so always choose to install the one with the most recent version number.

  3. 當 [更新] 對話方塊開啟時,選擇 [立即更新]。When the Update dialog box opens, choose Update Now.

    使用 [通知] 中樞的 [更新] 對話方塊來更新 Visual Studio 2017Update Visual Studio 2017 by using the Update dialog box from the Notifications hub

    若系統開啟 [使用者存取控制] 對話方塊,請選擇 [是]。If a User Access Control dialog box opens, choose Yes. 接著,系統可能會短暫開啟 [請稍後] 對話方塊,然後 Visual Studio 安裝程式便會開啟以開始更新。Next, a "Please wait" dialog might open for a moment, and then the Visual Studio Installer opens to start the update.

    15.6 版中的新 Visual Studio 安裝程式體驗The new Visual Studio Installer experience in version 15.6

    更新將會繼續。Your update continues. 當它完成後,Visual Studio 會重新啟動。Then, when it's complete, Visual Studio restarts.

    Note

    當您以系統管理員模式執行 Visual Studio 時,就必須在更新之後手動重新啟動 Visual Studio。When you run Visual Studio in administrator mode, you must manually restart Visual Studio after the update.

使用 IDEUsing the IDE

您可以從 Visual Studio 中的功能表列檢查更新並安裝該更新。You can check for an update and then install the update from the menu bar in Visual Studio.

  1. 儲存您的工作。Save your work.

  2. 選擇 [說明] > [檢查更新]。Choose Help > Check for Updates.

    Visual Studio 15.6 版中的新 [說明] 功能表The new Help menu in Visual Studio version 15.6

  3. 當 [更新] 對話方塊開啟時,選擇 [立即更新]。When the Update dialog box opens, choose Update Now.

    更新會以如上一節所述的方式執行,然後 Visual Studio 會在完成後重新啟動。The update proceeds as described in the previous section, and then Visual Studio restarts after the update completes successfully.

    Note

    當您以系統管理員模式執行 Visual Studio 時,就必須在更新之後手動重新啟動 Visual Studio。When you run Visual Studio in administrator mode, you must manually restart Visual Studio after the update.

使用 Visual Studio 安裝程式Using the Visual Studio Installer

和較舊版本的 Visual Studio 相同,您可以使用 Visual Studio 安裝程式來安裝更新。As in earlier versions of Visual Studio, you can use the Visual Studio Installer to install an update.

  1. 儲存您的工作。Save your work.

  2. 開啟安裝程式。Open the installer. Visual Studio 安裝程式可能會需要更新才能繼續執行。The Visual Studio Installer might require updating before you continue.

    Note

    若要在執行 Windows 10 的電腦上尋找安裝程式,您可在字母 V 底下找到 Visual Studio 安裝程式,或是在字母 M 底下找到 Microsoft Visual Studio 安裝程式On a computer running Windows 10, you can find the installer under the letter V as the Visual Studio Installer, or under the letter M as the Microsoft Visual Studio Installer.

  3. 在安裝程式的 [產品] 頁面上,尋找您先前已安裝的 Visual Studio 版本。On the Product page in the installer, look for the edition of Visual Studio that you installed previously.

  4. 如果有更新可供使用,您會看到 [更新] 按鈕。If an update is available, you see an Update button. (安裝程式可能需要幾秒鐘的時間來判斷是否有更新可供使用)。(It might take a few seconds for the installer to determine whether an update is available.)

    選擇 [更新] 按鈕,以安裝更新。Choose the Update button to install the updates.

    使用 Visual Studio 安裝程式更新 Visual Studio 2017Update Visual Studio 2017 by using the Visual Studio Installer

更新 Visual Studio 2017 15.5 版或較早版本Update Visual Studio 2017 version 15.5 or earlier

如果您是使用較早的版本,以下是從 Visual Studio 2017 15.0 版至 15.5 版套用更新的方式。If you're using an earlier version, here's how to apply an update from Visual Studio 2017 version 15.0 through version 15.5.

使用通知中樞更新Update by using the Notifications hub

  1. 有更新可用時,Visual Studio 會顯示相對應的通知旗標。When there are updates, there's a corresponding notification flag in Visual Studio.

    使用通知中樞更新 Visual Studio 2017Update Visual Studio 2017 by using the Notification hub

    選擇通知旗標,以開啟 [通知] 中樞。Choose the notification flag to open the Notifications hub.

    使用通知中樞更新 Visual Studio 2017Update Visual Studio 2017 by using the Notification hub

    Tip

    Visual Studio 2017 的版本更新是累積性的,因此請一律選擇安裝版本號碼為最新的更新。An update for an edition of Visual Studio 2017 is cumulative, so always choose to install the one with the most recent version number.

  2. 選擇 ["Visual Studio Update" is available] (有 "Visual Studio 更新" 可供使用),以開啟 [延伸模組和更新] 對話方塊。Choose "Visual Studio Update" is available, which opens the Extensions and Updates dialog box.

    使用通知中樞更新 Visual Studio 2017Update Visual Studio 2017 by using the Notifications hub

  3. 在 [延伸模組和更新] 對話方塊中,選擇 [更新] 按鈕。In the Extensions and Updates dialog box, choose the Update button.

    使用通知中樞更新 Visual Studio 2017Update Visual Studio 2017 by using the Notifications hub

進一步了解 Visual Studio 通知More about Visual Studio notifications

Visual Studio 會通知您何時有 Visual Studio 本身或任何元件的更新可用,也會通知您 Visual Studio 環境中何時發生特定事件。Visual Studio notifies you when an update is available for Visual Studio itself or for any components, and also when certain events occur in the Visual Studio environment.

  • 通知旗標為黃色時,表示有可供您安裝的 Visual Studio 產品更新。When the notification flag is yellow, there's a Visual Studio product update available for you to install.
  • 通知旗標為紅色時,表示您的授權發生問題。When the notification flag is red, there's a problem with your license.
  • 通知旗標為黑色時,表示有需要檢閱的選擇性或資訊訊息。When the notification flag is black, there are optional or informational messages to review.

選擇通知旗標以開啟 [通知] 中樞,然後選擇您想要處理的通知。Choose the notifications flag to open the Notifications hub and then choose the notifications that you want to act on. 或者,選擇忽略或關閉通知。Or, choose to ignore or dismiss a notification.

在 [通知] 中樞內檢視選擇性或資訊訊息View an optional or informational message in the Notification hub

如果您選擇忽略通知,則 Visual Studio 會停止顯示該通知。If you choose to ignore a notification, Visual Studio stops showing it. 如果您想要重設已忽略通知的清單,請選擇 [通知] 中樞中的 [設定] 按鈕。If you want to reset the list of ignored notifications, choose the Settings button in the Notifications hub.

選擇 [通知] 中樞內的 [設定] 按鈕來檢視通知選項Choose the Settings button in the Notifications hub to view Notification options

使用 Visual Studio 安裝程式更新Update by using the Visual Studio Installer

  1. 開啟安裝程式。Open the installer. 您可能需要更新安裝程式才能繼續。You might need to update the installer before continuing. 如果是這種情況,系統會提示您執行這個操作。If this is the case, you're prompted to do so.

    Note

    若要在執行 Windows 10 的電腦上尋找安裝程式,您可在字母 V 底下找到 Visual Studio 安裝程式,或是在字母 M 底下找到 Microsoft Visual Studio 安裝程式On a computer running Windows 10, you can find the installer under the letter V as the Visual Studio Installer, or under the letter M as the Microsoft Visual Studio Installer.

  2. 在安裝程式的 [產品] 頁面上,尋找先前已安裝的 Visual Studio 版本。On the Product page in the installer, look for the edition of Visual Studio that installed previously.

  3. 如果有更新可供使用,您會看到 [更新] 按鈕。If an update is available, you see an Update button. (安裝程式可能需要幾秒鐘的時間來判斷是否有更新可供使用)。(It might take a few seconds for the installer to determine whether an update is available.)

    選擇 [更新] 按鈕,以安裝更新。Choose the Update button to install the updates.

    使用 Visual Studio 安裝程式更新 Visual Studio 2017Update Visual Studio 2017 by using the Visual Studio Installer

我們建議您更新到最新發行的 Visual Studio 2019,使您可以持續取得最新的功能、修正及功能改進。We encourage you to update to the most recent release of Visual Studio 2019 so that you always get the latest features, fixes, and improvements.

如果您尚未安裝 Visual Studio 2019,請前往 Visual Studio 下載頁面來免費安裝它。And if you haven't already installed Visual Studio 2019, go to the Visual Studio downloads page to install it for free.

Important

您必須以具有安裝、更新或修改 Visual Studio 之系統管理權限的帳戶登入。You must log on with an account that has administrative permissions to install, update, or modify Visual Studio. 如需詳細資訊,請參閱使用者權限和 Visual StudioFor more information, see User Permissions and Visual Studio.

Note

本主題適用於 Windows 上的 Visual Studio。This topic applies to Visual Studio on Windows. 針對 Visual Studio for Mac,請參閱更新 Visual Studio for MacFor Visual Studio for Mac, see Update Visual Studio for Mac.

以下是更新 Visual Studio 2019 的方式。Here's how to update Visual Studio 2019.

使用 Visual Studio 安裝程式Use the Visual Studio Installer

  1. 開啟安裝程式。Open the installer.

    從 Windows 開啟 Visual Studio 安裝程式Open the Visual Studio Installer from Windows

    您可能需要更新安裝程式才能繼續。You might have to update the installer before continuing. 若是如此,請遵循提示。If so, follow the prompts.

  2. 請在安裝程式中尋找您安裝的 Visual Studio 版本。In the installer, look for the edition of Visual Studio that you installed.

    例如,如果您之前已安裝 Visual Studio Community 2019,且其有可用的更新,安裝程式中就會出現 [有可用的更新] 訊息。For example, if you previously installed Visual Studio Community 2019 and there's an update for it, then an Update available message appears in the installer.

    請選取您要更新的 Visual Studio 2019 版本Select the edition of Visual Studio 2019 that you want to update

  3. 選擇 [更新] 安裝更新。Choose Update to install the updates.

    請選取 [更新] 按鈕來安裝更新Select the Update button to install the updates

  4. 在更新完成之後,可能會要求您重新啟動電腦。After the update is complete, you might be asked to restart your computer. 若是這樣,請這麼做,然後像平常一樣啟動 Visual Studio。If so, do so, and then start Visual Studio as you typically would.

    如果未要求您重新啟動電腦,請選擇 [啟動] 以從安裝程式啟動 Visual Studio。If you aren't asked to restart your computer, choose Launch to start Visual Studio from the installer.

    請選取 [啟動] 按鈕來啟動 Visual StudioSelect the Launch button to start Visual Studio

使用 IDEUse the IDE

您可以從功能表列或 Visual Studio 2019 中的搜尋方塊檢查更新並安裝該更新。You can check for an update and then install it by using the menu bar or the search box in Visual Studio 2019.

開啟 Visual StudioOpen Visual Studio

  1. 從 Windows [開始] 功能表選擇 [Visual Studio 2019]。From the Windows Start menu, choose Visual Studio 2019.

    開啟 Visual Studio 2019Open Visual Studio 2019

  2. 在 [開始使用] 下,選擇任一選項開啟 IDE。Under Get started, choose any option to open the IDE.

    開啟 Visual Studio 安裝程式Open the Visual Studio Installer

    Visual Studio 隨即開啟。Visual Studio opens. 在 IDE 中,會顯示 Visual Studio 2019 更新訊息。In the IDE, a Visual Studio 2019 update message appears.

    IDE 中的「Visual Studio 2019 更新」訊息The 'Visual Studio 2019 update' message in the IDE

  3. Visual Studio 2019 更新訊息中,選擇 [檢視詳細資料]。In the Visual Studio 2019 update message, choose View details.

    選擇 Visual Studio 2019 IDE 更新訊息中的 [檢視詳細資料] 按鈕Choose View Details button in the Visual Studio 2019 IDE update message

  4. 在 [已下載更新,可以開始安裝] 對話方塊方塊中,選擇 [更新]。In the Update downloaded and ready to install dialog box, choose Update.

    在 [已下載更新,可以開始安裝] 對話方塊中選擇 [更新] 按鈕Choose the Update button in the 'Update downloaded and ready to install' dialog box

    Visual Studio 隨即更新,然後關閉再重新開啟。Visual Studio updates, closes, and then reopens.

在 Visual Studio 中In Visual Studio

  1. 從功能表列選擇 [說明],然後選擇 [查看是否有更新]。From the menu bar, choose Help, and then choose Check for Updates.

    從 [說明] 功能表選擇 [查看是否有更新]Choose 'Check for Updates' from the Help menu

    Note

    您也可以使用 IDE 中的搜尋方塊來檢查更新。You can also use the search box in the IDE to check for updates. 按下 Ctrl+Q,鍵入「查看是否有更新」,然後選擇符合的搜尋結果。Press Ctrl+Q, type "check for updates", and then choose the search result that matches.

  2. 在 [有可用的更新] 對話方塊中,選擇 [更新]。In the Update available dialog box, choose Update.

    在 [已下載更新,可以開始安裝] 對話方塊中選擇 [更新] 按鈕Choose the Update button in the 'Update downloaded and ready to install' dialog box

    Visual Studio 隨即更新,然後關閉再重新開啟。Visual Studio updates, closes, and then reopens.

使用 [通知] 中樞Use the Notifications hub

  1. 在 Visual Studio 中,儲存您的工作。In Visual Studio, save your work.

  2. 從 Visual Studio IDE 的右下角選擇通知圖示,以開啟 [通知] 中樞。Choose the notification icon from the lower-right corner of the Visual Studio IDE to open the Notifications hub.

    Visual Studio IDE 中的通知圖示The notification icon in the Visual Studio IDE

  3. 在 [通知] 中樞中,選擇您要安裝的更新,然後選擇 [檢視詳細資料]。In the Notifications hub, choose the update that you want to install, and then choose View details.

    Visual Studio 2019 中的 [通知] 中樞The Notification hub in Visual Studio 2019

    Tip

    Visual Studio 2019 的版本更新是累積性的,因此請選擇安裝版本號碼為最新的更新。An update for an edition of Visual Studio 2019 is cumulative, so always choose to install the one with the most recent version number.

  4. 在 [有可用的更新] 對話方塊中,選擇 [更新]。In the Update available dialog box, choose Update.

    Visual Studio 隨即更新,然後關閉再重新開啟。Visual Studio updates, closes, and then reopens.

自訂更新設定Customize update settings

您能以數個不同方式自訂 Visual Studio 中的更新設定,例如,變更安裝模式和選取自動下載。You can customize the update settings in Visual Studio in several different ways, such as by changing the installation mode and by selecting automatic downloads.

有兩種安裝模式可選擇:There are two installation modes to choose from:

  • 在下載時安裝Install while downloading
  • 全部下載後安裝Download all, then install

您也可以選擇 [自動下載更新] 設定,讓系統在機器閒置時下載更新。You can also choose the Automatically download updates setting, which allows updates to download while your machine is idle.

方式如下:Here's how:

  1. 在功能表列上選擇 [工具] >[選項]。On the menu bar, choose Tools > Options.

  2. 展開 [環境],然後選擇 [產品更新]。Expand Environment, and then choose Product Updates.

    Visual Studio 中的更新設定

  3. 選擇您要用於 Visual Studio 更新的安裝模式和自動下載選項。Choose the installation mode and the automatic download options you want for your Visual Studio updates.

取得支援Get support

有時可能會發生一些問題。Sometimes, things can go wrong. 若 Visual Studio 安裝失敗,請參閱針對 Visual Studio 安裝和升級問題進行疑難排解,以取得逐步指導方針。If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.

我們也提供即時聊天 (僅限英文) 支援選項,可回答有關安裝的相關問題。We also offer a live chat (English only) support option for installation-related issues.

以下是一些支援選項:Here are a few more support options:

另請參閱See also