title: Installing .NET 7 preview breaks MAUI build
body: <p>Since installing the .net 7 preview I can no longer build .net maui projects. I've uninstalled the preview and deleted the bin/obj files but still can't debug. The error's i'm getting are:</p>
  <pre><code>'{directory}/project.assets.json' doesn't have a target for 'net6.0-android'. Ensure that restore has run and that you have included 'net6.0-android' in the TargetFrameworks for your project. 
  C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets    267 
  </code></pre>
  <p>After trying dotnet restores and uninstalling/reinstalling .net components i now can't even click debug and get the error: <a href="https://i.stack.imgur.com/DBJ5C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DBJ5C.png" alt="visual studio unable to start debugging the startup project cannot be launched..." /></a></p>
  <p><strong>Update</strong>
  I uninstalled and reinstalled visual studio and .net and got it working, momentarily. But now I'm getting the same errors again. I close and re-open Visual Studio or uninstall/reinstall components and then maybe get a different error like this one:</p>
  <pre><code>Manifest file at 'obj\Debug\net6.0-android\android-arm64\staticwebassets.build.json' not found. C:\Program Files\dotnet\sdk\6.0.401\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets
  </code></pre>
  <p>Or no option to debug android at all:
  <a href="https://i.stack.imgur.com/tHq6z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tHq6z.png" alt="no android option" /></a></p>
  <p>I think this is related to my other open question: <a href="https://stackoverflow.com/questions/73760662/net-maui-blazor-cant-click-anything-no-package-id-ff-found-for-id-0xfffff">.Net MAUI Blazor - can&#39;t click anything - &quot;No package ID ff found for ID 0xffffffff&quot;, android</a></p>