driib
Explore posts from servers❔ Getting rid of System.Net.Http.Formatting
Hi, I am trying to migrate an old ASP.NET MVC 4 / Net 4.5 app to ASP.NET 5 / Net 4.8 (with an eye on switching the libraries to .NET Standard 2.0 and the API to .Net Core 7 with Razor Pages later). I got it to build by downgrading from MVC 5.2.9 to 5.2.3 and adding obscure System.Net.Http.Formatting.Extension package from Nuget that didn't come with any README.
Two problems/questions:
1. While the MVC 5 project builds and runs locally (VS 2022 17.5.4, MSBuild version 17.5.1, .NET Framework 4.8.09032), it doesn't build on Github Actions (MSBuild version 17.5.1) https://github.com/OSLC/oslc4net/actions/runs/4723543633/jobs/8379639727
2. How can I get rid of the kludge System.Net.Http.Formatting.Extension and upgrade to the latest MVC 5.2.9? I read I read https://github.com/Microsoft/dotnet/blob/main/releases/net472/KnownIssues/613745%20-%20Single-name%20references%20are%20removed%20by%20the%20SDK%20when%20targeting%204.7.2.md but while it makes the problem clear, it doesn't seem to help.
Thank you in advance!
5 replies