title: How have test project reference Maui project?
body: <p>I've recently jumped into cross-platform development and wanted to just bite the bullet and go straight into the newest framework that the dotnet team has started working on, MAUI.</p>
  <p>The issue I've run into is trying to add another test project in the solution and referencing the MAUI project. As I'm pretty new to Visual Studio as well, this may just be a rookie mistake and I just don't know what I'm doing, but here I am asking away.</p>
  <h2>What I've done:</h2>
  <ul>
  <li>Created MAUI project with the default template in Visual Studio 2022 Preview 17.2.0, with target frameworks (net6.0, net6.0-android &amp; net6.0-ios)</li>
  <li>Added XUnit test project on the side with target framework (net6.0)</li>
  <li>Added UseMaui=true as a property of the test project</li>
  </ul>
  <p>I've also tried to add all the target frameworks into the project, but that causes more issues than it solves. I've tried to follow this <a href="https://github.com/CommunityToolkit/Maui/blob/main/src/CommunityToolkit.Maui.UnitTests/CommunityToolkit.Maui.UnitTests.csproj" rel="nofollow noreferrer">open source project</a> where they got it to work, but I'm unsure how to achieve it.</p>
  <h2>Some screenshots</h2>
  <p><a href="https://i.stack.imgur.com/Gvmd0.png" rel="nofollow noreferrer">Test Project .csproj</a></p>
  <p><a href="https://i.stack.imgur.com/K5ye0.png" rel="nofollow noreferrer">Alt+Enter of class not being imported</a></p>
  <p><a href="https://i.stack.imgur.com/3NgWr.png" rel="nofollow noreferrer">Manually added import because suggestions did not add them</a></p>
  <p><a href="https://i.stack.imgur.com/Aye25.png" rel="nofollow noreferrer">Error in Test Project</a></p>
  <p><a href="https://i.stack.imgur.com/uBBJQ.png" rel="nofollow noreferrer">Test Project</a></p>