微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

VS 2017中的大型XML文件15.1

我被告知……

‘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.

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

为什么它不存在呢?

这是一个小型的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" "HKLM" "XmlEditor" "MaxFileSizeSupportedByLanguageService" string 100

如果用户配置单元中已有设置,您可以删除它们或在用户级别设置值 – 这也不需要管理员权限:

$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

原文地址:https://www.jb51.cc/xml/292308.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。