Not sure if this helps but I believe the VS upgrade you did also included the installation of .NET 9. Changing your target to .NET 9 may fix at least some of the namespace errors.