【问题标题】:How to install Visual Studio 2022 Build Tools on Windows Server Core 2022如何在 Windows Server Core 2022 上安装 Visual Studio 2022 构建工具
【发布时间】:2022-10-24 16:53:48
【问题描述】:

我正在尝试在完全更新的 Windows Server 2022 Core 安装上安装 Visual Studio 2022 Build 工具作为 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/

谁能告诉它为什么失败?

【问题讨论】:

    标签: visual-studio-2022 build-tools windows-server-2022


    【解决方案1】:

    在 Windows Server 2022 Core 上安装 Visual Studio Build Tools 2022 将始终失败,因为 Visual Studio Build Tools 2022 只会将 2016 和 2019 版本的 Windows Server Core 识别为安装候选者,即使请求静默安装也是如此。安装程序将尝试抛出 GUI 异常(Core 无法处理)。

    在 Windows Server Core 上运行 Visual Studio Build Tools 2022 的唯一方法是在 2016 或 2019 版本上执行此操作。Microsoft 在其文档中特别指出了这一点(来自:https://learn.microsoft.com/en-us/visualstudio/releases/2022/system-requirements#microsoft-visual-studio-build-tools-2022-system-requirements):

    【讨论】:

      【解决方案2】:

      最好在linux中使用vs。 您可以使用虚拟机来执行此操作。

      【讨论】:

        猜你喜欢
        • 2021-12-22
        • 2017-10-10
        • 2021-11-23
        • 2021-09-03
        • 2015-04-17
        • 2022-01-25
        • 1970-01-01
        • 2022-06-25
        • 2022-10-15
        相关资源
        最近更新 更多