Show only LTS updates for ASP.NET Core NuGet packages in Visual Studio

江枫思渺然 提交于 2021-02-11 04:54:17

问题


Having an ASP.NET Core project running on 2.1 LTS, I want to stay on LTS versions. So I'm not updating on 2.2 or 3.0 (both currently EOL) but an upgrade to 3.1 (next LTS) is planned in the future. Currently I want to stay on 2.1 LTS, which is still supported up to August 21, 2021.

The NuGet package manager of VS 2019 show me a lot of updates for 2.2! I have to check every single update if there are any 2.1.x fixes like in this example:

Here I have 2.1.11 installed and there is 2.1.16. I'd like to install 2.1.16 to apply the latest fixes and security patches. After updating from 2.1.11 to 2.1.16, NuGet still shows me an update to 2.2.5:

As you can see, the latest 2.1.x version is now installed, but NuGet still wants me to update on 2.2.5 (which is not LTS and 2.2 is also EOL since end of 2019).

How can I setup the VS 2019 solution to inform me about updates in the LTS branch (like 2.1.11 to 2.1.16: First screenshot) but not upgrades outside the LTS branch (Like 2.1.16 to 2.2.5 on the second screenshot)?

来源:https://stackoverflow.com/questions/61427789/show-only-lts-updates-for-asp-net-core-nuget-packages-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!