I'm trying to migrate from .NET 5 to .NET 6. I've installed VS 2022 Community Preview and the Hosting Bundle... and updated everything in NuGet. The project will build without errors but when I go to publish it, I get the following error:
Assets file 'D:\Data\CADE.core\FileManager\FileManager\obj\project.assets.json' doesn't have a target for 'net5.0'.
Ensure that restore has run and that you have included 'net5.0' in the TargetFrameworks for your project.
I don't know why it's still looking for .NET 5 nor how to fix this error.