我正在尝试将VisualStudio2022构建工具安装在一个完全更新的WindowsServer2022核心安装上,作为ESXi上的虚拟机。每当启动设置时,都会看到GUI在提取文件时出现,然后崩溃,留下一个事件日志条目:
Application: vs_setup_bootstrapper.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NotImplementedException
at MS.Win32.UnsafeNativeMethods+ITfThreadMgr.CreateDocumentMgr(ITfDocumentMgr ByRef)
at System.Windows.Input.TextServicesContext.RegisterTextStore(System.Windows.Input.DefaultTextStore)
at System.Windows.Input.DefaultTextStore.get_Current()
at System.Windows.Input.TextServicesContext.SetFocusOnDefaultTextStore()
at System.Windows.Input.InputMethod.EnableOrDisableInputMethod(Boolean)
at System.Windows.Input.TextServicesManager.Focus(System.Windows.DependencyObject)
at System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject, Int32)
at System.Windows.Input.KeyboardDevice.TryChangeFocus(System.Windows.DependencyObject, System.Windows.Input.IKeyboardInputProvider, Boolean, Boolean, Boolean)
at System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean)
at System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement)我也尝试过手动提取文件并运行,但是使用本指南也会发生同样的事情,因为安装程序本身正在崩溃:
https://silentinstallhq.com/visual-studio-build-tools-2022-silent-install-how-to-guide/
有人能告诉我为什么失败吗?
发布于 2022-10-22 15:55:28
在Windows Server 2022 Core上安装Visual Studio Build Tools 2022总是会失败,因为Visual Tools 2022只会将2016和2019年版本的Windows Server Core标识为安装候选版本,即使请求进行无声安装也是如此。安装程序将尝试抛出GUI异常( Core无法处理该异常)。
在上运行2022的唯一方法是在2016或2019年版本上运行。微软在他们的文档(来自:https://learn.microsoft.com/en-us/visualstudio/releases/2022/system-requirements#microsoft-visual-studio-build-tools-2022-system-requirements)中特别提到了这一点:

发布于 2022-10-24 08:53:48
在linux中使用vs更好。您可以使用VM来完成这一任务。
https://stackoverflow.com/questions/74052255
复制相似问题