The institution of meta packages has reduced the need for individual nuget packages. Many of the separate Microsoft .net core nuget packages like the one you list, have been moved to main repo and are no longer separate packages.
The project file for a .net core application now defines the runtime and the project sdk. The sdk define a meta package with several libraries from the main repo. The Microsoft.AspNetCore requires the Microsoft.NET.Sdk.Web
the short answer, is you just need update project sdk in the .csproj.
https://learn.microsoft.com/en-us/visualstudio/msbuild/how-to-use-project-sdk?view=vs-2022