简体   繁体   English

使用 .NET 5.0 编写 Visual Studio 扩展 (VSIX)

[英]Writing Visual Studio Extension (VSIX) with .NET 5.0

I am working on a VS 2019 Extension that is currently using .NET Framework (4.8).我正在开发一个目前使用 .NET 框架(4.8)的 VS 2019 扩展。 I want to upgrade it to .NET 5.0 but the VSIX project does not support it or any .NET Core version.我想将它升级到 .NET 5.0,但 VSIX 项目不支持它或任何 .NET 核心版本。 I want to avoid .NET Standard if at all possible.如果可能的话,我想避免使用 .NET 标准。 I can find no info on the next Visual Studio version (2021?) and if .NET 5.0 VSIX projects will be supported or not.我找不到有关下一个 Visual Studio 版本(2021 年?)的信息,以及是否支持 .NET 5.0 VSIX 项目。 I would think Microsoft would be working on this but on the other hand VS is still a 32 bit app.我认为微软会致力于此,但另一方面 VS 仍然是一个 32 位应用程序。 :-) Sorry if this is not the right venue but this is my first question here. :-) 对不起,如果这不是正确的地点,但这是我在这里的第一个问题。

Your main extension must be x86 .NET Framework, as it is hosted by the VS process.您的主扩展必须是 x86 .NET 框架,因为它由 VS 进程托管。 You could move some your your functions to .NET Standard 2.0, or to a .NET Core 5.0 console app.您可以将您的一些功能移动到 .NET Standard 2.0 或 .NET Core 5.0 控制台应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM