question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] File -> New MAUI App does not compile

See original GitHub issue

Steps to Reproduce

  1. Create a new .NET MAUI App project in Visual Studio 2022 (17.0.0 Preview 7.0).
  2. Try to build.

Expected behavior Since it’s the default app template, the app should compile.

Actual behavior The app opens the “Setup Hot Restart” to setup deploying to a local iOS device. But hey, I don’t have an iOS device (and I want to just start with only Android at first). So I close the popup and then the solution does not compile. Not 100% sure that the two are related, but considering that trying to rebuild I get the same popup, I guess they are.

Expected behavior I should be able to compile without setting up iOS device. Maybe a dialog asking for what platforms do you want to build for?

Additional details

  • Even if I delete all the other Platforms (except Android) folders from the solution and SupportedOSPlatformVersion property group from csproj it still does not compile.
  • Compile Errors: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MagicAndre1981commented, Feb 14, 2022

yes, VS 17.1 Preview 6.0 fixed my compile issue and I see my connected Pixel phone and can deploy it.

0reactions
sergiomfcommented, Mar 12, 2022

Version 17.2.0 Preview 1.0 issue not yet fixed:

01
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot known issues - .NET MAUI
Learn about .NET MAUI known issues and troubleshooting you can do to resolve these issues.
Read more >
Why is .NET MAUI app not running after compile?
NET MAUI project. I want to use the Visual Studio built-in "Build". Maybe this is some preview error or happening only in my...
Read more >
MAUI project will not compile for iOS #4976 - ABP Commercial
Currently, when I try to compile the app I get the following error: error NETSDK1005: Assets file 'Z:\Projects\xxxx\aspnet-core\src\xxxx.
Read more >
the maui template doesn't compile : r/dotnet
Hi everyone! I am new in dotnet and try to write a first app but. I can't compile it for windows 11 and...
Read more >
NET MAUI App Stopped Working -- HELP!
Build Fails with One or More Invalid Files Were Detected ... Deleting the new assets doesn't fix your issue, and now your app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found