How to fix recent errors generated by switching to .net 8.0
I had an app that was compiling and running just fine. I endeavored to put a map on the Home Page and read something that suggested that I upgrade to .net 8.0. Well it's been a nightmare and I've lost weeks of productivity. I believe I have the map information to continue, but I am fighting Package errors that are manifesting as namespace errors on all .net maui platforms (Android, iOS, & Windows). I have tried several solutions from Stack Overflow, but creating a new project and copying the other project files to that project has not worked (even though others had success with that method). I have also edited my csproj file and changed version information on packages and added other packages (mainly associated with getting maps working on each platform), but that has been unfruitful also. I am now questioning - is the solution to go back to .net 7.0, and if so how do I do that?
Any input is welcome, as I hate being dead in the water for weeks at a time. My current Visual Studio error log is attached.net 8.0 errors.txt
Errors:
Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?) ExecuRide Driver 2 (net8.0-android) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\Platforms\iOS\AppDelegate.cs 6 Active Error CS0234 The type or namespace name 'MauiWinUIApplication' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?) ExecuRide Driver 2 (net8.0-windows10.0.19041.0) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\obj\Debug\net8.0-windows10.0.19041.0\win10-x64\Platforms\Windows\App.g.i.cs 40 Active Error CS0234 The type or namespace name 'MauiWinUIApplication' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?) ExecuRide Driver 2 (net8.0-android) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\obj\Debug\net8.0-windows10.0.19041.0\win10-x64\Platforms\Windows\App.g.i.cs 40 Active Error CS0246 The type or namespace name 'MauiAppCompatActivity' could not be found (are you missing a using directive or an assembly reference?) ExecuRide Driver 2 (net8.0-android) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\Platforms\Android\MainActivity.cs 8 Active Error CS0246 The type or namespace name 'MauiApplication' could not be found (are you missing a using directive or an assembly reference?) ExecuRide Driver 2 (net8.0-android) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\Platforms\Android\MainApplication.cs 7 Active Error CS0246 The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?) ExecuRide Driver 2 (net8.0-android) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\Platforms\MacCatalyst\AppDelegate.cs 6 Active Error CS0246 The type or namespace name 'MauiWinUIApplication' could not be found (are you missing a using directive or an assembly reference?) ExecuRide Driver 2 (net8.0-android) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\Platforms\Windows\App.xaml.cs 11 Active Error CS0103 The name 'DebugSettings' does not exist in the current context ExecuRide Driver 2 (net8.0-windows10.0.19041.0) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\obj\Debug\net8.0-windows10.0.19041.0\win10-x64\Platforms\Windows\App.g.i.cs 60 Active Error CS0103 The name 'UnhandledException' does not exist in the current context ExecuRide Driver 2 (net8.0-windows10.0.19041.0) C:\Users\squisw01\source\repos\squisw01\ExecuRide Driver 2\ExecuRide Driver 2\obj\Debug\net8.0-windows10.0.19041.0\win10-x64\Platforms\Windows\App.g.i.cs 66 Active