Fix error: There was no runtime pack for Microsoft.Android available for the specified RuntimeIdentifier 'win-x64'
Several weeks ago I had a working app that had 4 tabs and in the 1st tab I wanted to place a Google Map. I upgraded my Visual Studio from .Net 7.0 to .Net 8.0 and have not been able to successfully compile for a month. All of a sudden .net maui has decided to compile platforms I previously was not using and my code was still attempting to compile them. Somehow between the addition of .net 8.0 and map configuration in my 1st tab I find myself fighting other issues that did not exist. With that I simplified and created a rudimentary test program (just iOS and Android) that simply creates a project and puts a Google Map on the MainPage. As I mentioned initially, it tried to also compile maccatalyst and windows. I identified that TargetFrameworks should only be Android and iOS using "<TargetFrameworks>net7.0-android;net7.0-ios</TargetFrameworks>". I also fought the new SelfContained app issue using the solution I found and adding it to my csproj file (<SelfContained>true</SelfContained>). Even after fixing these when I only had 1 Error and 1 Warning - it produced 5 new errors. How do I turn off compiling of Plaforms I am not targeting?
If anyone can help, I would greatly appreciate it - as I am just trying to keep development progressing on my original project. The picture below is from a test project that is showing the same issue except it is .net 7.