VS 2017 15.1中的大型XML文件

时间:2023-01-15 10:14:25

I am being told to ...

我被告知......

'sms-20170225122824.xml' is too large to open with XML editor. The maximum file size is '10' MB. Please update the registry key 'HKCU\Software\Microsoft\VisualStudio\15.0_65fa8ce7_Config\XmlEditor\MaxFileSizeSupportedByLanguageService' to change the maximum size.

“sms-20170225122824.xml”太大,无法使用XML编辑器打开。最大文件大小为“10”MB。请更新注册表项“HKCU \ Software \ Microsoft \ VisualStudio \ 15.0_65fa8ce7_Config \ XmlEditor \ MaxFileSizeSupportedByLanguageService”以更改最大大小。

Not only does the key 15.0_65fa8ce7_Config not exist, so I created it manually (plus the sub-keys) but what type is MaxFileSizeSupportedByLanguageService?

密钥15.0_65fa8ce7_Config不仅不存在,所以我手动创建它(加上子密钥)但是MaxFileSizeSupportedByLanguageService是什么类型的?

And why doesn't it exist already?

为什么它不存在呢?

VS 2017 15.1中的大型XML文件

2 个解决方案

#1


7  

Here is a small powershell to do the job

这是一个小型的PowerShell来完成这项工作

$vsWherePath = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe"
$installPath = &$vsWherePath -all -latest -property installationPath
$vsregedit = Join-Path $installPath 'Common7\IDE\vsregedit.exe'
& $VsRegEdit set "$installPath" "HKCU" "XmlEditor" "MaxFileSizeSupportedByLanguageService" string 100

#2


3  

In Visual Studio 2015, you could find the registry key MaxFileSizeSupportedByLanguageService in 14.0_Config\XmlEditor of type string (REG_SZ).

在Visual Studio 2015中,您可以在类型为string(REG_SZ)的14.0_Config \ XmlEditor中找到注册表项MaxFileSizeSupportedByLanguageService。

Not sure if this will work with VS 2017 though. According to Microsoft doc: "To deliver on a low-impact install of Visual Studio that also supports side-by-side installs, we no longer save most configuration data to the system registry..." (source)

不确定这是否适用于VS 2017。根据Microsoft doc说:“为了提供支持并行安装的低影响安装的Visual Studio,我们不再将大多数配置数据保存到系统注册表......”(来源)

Edit: have a look at this answer on how to update the registry settings for Visual Studio 2017: https://*.com/a/42871072/107675

编辑:看看有关如何更新Visual Studio 2017的注册表设置的答案:https://*.com/a/42871072/107675

#1


7  

Here is a small powershell to do the job

这是一个小型的PowerShell来完成这项工作

$vsWherePath = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe"
$installPath = &$vsWherePath -all -latest -property installationPath
$vsregedit = Join-Path $installPath 'Common7\IDE\vsregedit.exe'
& $VsRegEdit set "$installPath" "HKCU" "XmlEditor" "MaxFileSizeSupportedByLanguageService" string 100

#2


3  

In Visual Studio 2015, you could find the registry key MaxFileSizeSupportedByLanguageService in 14.0_Config\XmlEditor of type string (REG_SZ).

在Visual Studio 2015中,您可以在类型为string(REG_SZ)的14.0_Config \ XmlEditor中找到注册表项MaxFileSizeSupportedByLanguageService。

Not sure if this will work with VS 2017 though. According to Microsoft doc: "To deliver on a low-impact install of Visual Studio that also supports side-by-side installs, we no longer save most configuration data to the system registry..." (source)

不确定这是否适用于VS 2017。根据Microsoft doc说:“为了提供支持并行安装的低影响安装的Visual Studio,我们不再将大多数配置数据保存到系统注册表......”(来源)

Edit: have a look at this answer on how to update the registry settings for Visual Studio 2017: https://*.com/a/42871072/107675

编辑:看看有关如何更新Visual Studio 2017的注册表设置的答案:https://*.com/a/42871072/107675