Skip to content

Exception thrown on .NET 10 Windows when calling Permissions.CheckStatusAsync<Permissions.Microphone>() #32989

@BethMassi

Description

@BethMassi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    i/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowsregressed-in-10-rc2s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions