-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
I have a MAUI application currently running in NET 7. My main workflow is to compile and deploy directly to local android device directly from visual studio. Every time I hit F5 the application compiles and is deployed to the phone within a few seconds.
Today I tried to upgrade the project to target NET 8 and noticed that it takes a very long time to compile and deploy to the phone. Even if there are no changes at all to the code base it seems the application is always rebuilt and this makes it almost impossible to work with.
To rule out that I have some strange things going on in my project I tried to create two new default MAUI applications in Visual studio. One targeting NET 7 and one targeting NET 8 and then I tried to build them in command line a couple of times to see the difference in build time. See image below.
The first build is of course expected to take some time since it is built for the first time but build #2 and #3 should be faster since no changes are made. This works a expected i NET 7 but not in NET 8.
Am I doing something wrong? Are there any new properties that I need to enable to get the same build behaviour as before?
Steps to Reproduce
- Create a new MAUI project targeting NET 8
- Build the application for Android. (Should take a minute or so to build)
- Build it again for Android. (Should only take a couple of seconds since nothing in the code base is changed)
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.101
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No workaround
Relevant log output
No response
