无法在arm64上安装VSIX Visual Studio扩展?

huangapple go评论65阅读模式
英文:

Can't install VSIX Visual Studio extensions on arm64?

问题

我无法在我的arm64 Windows机器上安装任何主题到Visual Studio 2022。VSIX总是出错。

英文:

I can't get any themes to install in Visual Studio 2022 on my arm64 Windows machine. The VSIX always error out.

答案1

得分: 2

如果您在Win11 arm64上运行VS 2022,您可能已经注意到,您可能拥有本机的Visual Studio,但无法安装任何扩展-甚至是主题!

嗯,我找到了原因。这是因为即使是主题的VSIX包也与特定的目标体系结构绑定,即使它可以正常工作,它也会拒绝在其他任何地方安装。

不管怎样,这是安装主题的方法:

  1. 获取7-zip
  2. 通过右键单击并选择“在内部打开”来打开VSIX文件
  3. 找到extension.vsixmanifest,右键单击它,然后选择“编辑”
  4. 查找此标签:<ProductArchitecture>amd64</ProductArchitecture>,将amd64更改为arm64
  5. 关闭编辑器,并在7-zip询问您是否要更新文件时选择是

主题现在将无问题地安装。

希望这对某人有所帮助。

英文:

If you're running VS 2022 in Win11 arm64, you've probably noticed that you may have a native Visual Studio, but you can't get any extensions to install-not even themes!

Well, I figured out why. It's because even theme VSIX packages are tied to a specific set of target architectures, and it will refuse to install on anything else even if it would work just fine.

Anyway, here's how you install a theme:

  1. Get yourself 7-zip
  2. Open the VSIX file by right-clicking and choosing Open Inside
  3. Locate extension.vsixmanifest, and right-click that and choose Edit
  4. Find this tag: <ProductArchitecture>amd64</ProductArchitecture> and change amd64 to arm64
  5. Close the editor, and say yes when 7-zip asks you if you want to update the file.

The theme will now install with no problems.

Hope this helps someone out there.

huangapple
  • 本文由 发表于 2023年7月18日 01:42:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76706915.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定