1、网上各种水方法之后,无效
2、vs_community 安装的时候,会显示日志目录
比如:
C:\Users\****\AppData\Local\Temp\VSFaultInfo\190413_101600_0921845
会发现日志记录
Exception:
System.IO.DirectoryNotFoundException
未能找到路径“C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper”的一部分。
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
Microsoft.VisualStudio.Setup.Bootstrapper.Utilities.GetBootstrapperPackageCacheDirectory()
Microsoft.VisualStudio.Setup.Bootstrapper.Program.Parse(String[] args, IServiceProvider serviceProvider, String entryAssemblyProcessName, String entryAssemblyProcessFullName)
Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[] args)
WerReportAddDump PID=13316 vs_setup_bootstrapper WerDumpTypeMiniDump
3、发现问题:
Packages目录名字被修改
解决方案:
C:\ProgramData\Microsoft\VisualStudio\Packages 目录名字改回来即可。。。。折腾了几个小时