[Bug] File -> New MAUI App does not compile
See original GitHub issueSteps to Reproduce
- Create a new .NET MAUI App project in Visual Studio 2022 (17.0.0 Preview 7.0).
- 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:
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes, VS 17.1 Preview 6.0 fixed my compile issue and I see my connected Pixel phone and can deploy it.
Version 17.2.0 Preview 1.0 issue not yet fixed: