Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Need to update all Nuget packages to latest version in a solution that has projects which targets both .NET 4.7.1 and .NET 8

$
0
0

I have many solutions, and each solution has many projects. Some projects may be used in multiple solutions.

The ASP.NET MVC web app is targetting .NET 4.7.1. The API and library project both target .NET 4.7.1 and .NET 4.6. The ASP.NET MVC web app and the API reference the library project.

I migrated the API and Library to .NET 8.0 and it works.

There are many NuGet packages referenced in this solution which are deprecated, vulnerable and old versions. So I try updated all the Nuget packages to the latest version, but found challenges.

Some Nuget packages in their latest version are not compatible with .NET 4.7.1, so those are not getting installed.

Since the library project targets both .NET 4.7.1 and .NET 8.0, I don't know whether to update such nuget packages, and need advise here.

Can I convert this library to a .NET Standard project that is compatible with both .NET 4.7.1 and .NET 8.0 ? If I do that, can I update the NuGet packages to their latest versions, since it is not targeting .NET 4.7.1 but it should work with the ASP.NET MVC web app which is on .NET 4.7.1.

Or should I refactor the code which uses that NuGet package when converting to .NET Standard ?

The question is not specific to any particular NuGet package, since there are many NuGet packages, and need advise.

Please advise.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>