Home > Mobile >  How do I update other Microsoft libraries after updating to .Net Core 3.1
How do I update other Microsoft libraries after updating to .Net Core 3.1

Time:06-07

I have a web app solution that is quite old where the main project is Asp.Net 4.6 and a small companion project is .Net Core 2.

I want to first upgrade them both to .Net Core 3.1, and then upgrade to .Net 7 later this year.

According to the Microsoft documentation I have to update the target framework and associated libraries.

So I updated this part in my project file:

<TargetFramework>netcoreapp3.1</TargetFramework>

However, the other referenced libraries don't seem to have 3.1 updates. How would I upgrade these?

<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="2.0.3" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.3" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.ServiceModel.Duplex" Version="4.3.0" />
<PackageReference Include="System.ServiceModel.Security" Version="4.3.0" />

Thanks!

CodePudding user response:

When Microsoft introduced .NET Core 3.0, they stopped producing a large number of NuGet packages (If you're interested, you can see the list enter image description here

enter image description here

example2: enter image description here enter image description here

  • Related