首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在2022上安装VisualStudio2022构建工具

如何在2022上安装VisualStudio2022构建工具
EN

Stack Overflow用户
提问于 2022-10-13 07:56:17
回答 2查看 838关注 0票数 0

我正在尝试将VisualStudio2022构建工具安装在一个完全更新的WindowsServer2022核心安装上,作为ESXi上的虚拟机。每当启动设置时,都会看到GUI在提取文件时出现,然后崩溃,留下一个事件日志条目:

代码语言:javascript
复制
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/

有人能告诉我为什么失败吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 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)中特别提到了这一点:

票数 2
EN

Stack Overflow用户

发布于 2022-10-24 08:53:48

在linux中使用vs更好。您可以使用VM来完成这一任务。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74052255

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档