Description
On Windows when targeting .NET 10, an exception is thrown when checking the microphone permission. It's trying to open the AppxManifest file but I don't know why. This doesn't happen when targeting .NET 9.
Steps to Reproduce
- Create a new .NET 10 MAUI project
- Set the debug target to Windows
- Write the following code (call it anytime after the MainPage
InitializeComponent();) and set a breakpoint on the catch
try
{
var status = await Permissions.CheckStatusAsync<Permissions.Microphone>();
//.NET 9: status == "Granted"
}
catch (Exception ex)
{
//.NET 10: Throws error: Could not find file 'C:\...\bin\Debug\net10.0-windows10.0.19041.0\win-x64\AppxManifest.xml'.
}
F5. Notice the exception thrown. This does not happen when targeting .NET 9.
Link to public reproduction project repository
No response
Version with bug
10.0.11
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.120 SR12
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Description
On Windows when targeting .NET 10, an exception is thrown when checking the microphone permission. It's trying to open the AppxManifest file but I don't know why. This doesn't happen when targeting .NET 9.
Steps to Reproduce
InitializeComponent();) and set a breakpoint on thecatchF5. Notice the exception thrown. This does not happen when targeting .NET 9.
Link to public reproduction project repository
No response
Version with bug
10.0.11
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.120 SR12
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output