1. 程式人生 > >Visual Studio 2017安裝問題彙總

Visual Studio 2017安裝問題彙總

安裝Visual Studio 2017時提示安裝元件錯誤

解決: 網路 --》 更改連線屬性 --》 將公用改為 專用 網路即可.

 

15down vote

I encountered this problem in Visual Studio 2017 (15.7.4). After trying various solutions, eventually this worked for me: close all VS instances, run from the command line (possibly with Admin rights):

"devenv.exe /clearcache" and "devenv /updateconfiguration"

完全刪除後重新安裝VS

Have you tried to delete or rename the two folders?

you can try to remove the existing VS 2017 completely that install failed before as below:

  1. Go to Control Panel—Programs and Features, if there has ‘Microsoft Visual Studio 2017’, right click it and choose ‘Uninstall’
  2. Try to delete the following installed folders: (you can back up those folders before any modification, in case we need to roll back)

• Go to the folder: %ProgramData%\Microsoft\VisualStudio and delete the ‘Packages’ folder and ‘Setup’ folder if there has.

• Go to the Visual Studio installation folder (normally under %ProgramFiles(x86)%\Microsoft Visual Studio) and delete the folder ‘2017’

After this, reinstall visual studio 2017.