How to edit Windows Package.appxmanifest for .NET MAUI App?

dg2k 1,381 Reputation points
2022-06-11T11:54:41.457+00:00

The visual editor for Package.appxmanifest comes up as blank for Capabilities list (in non-MAUI design scenarios showing checkboxes for selecting capabilities). Copying and pasting from a working App based on Xamarin, I get an error:

DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE014: App manifest validation error: The app manifest must be valid as per schema:

The Capabilities in question, as they appear in the Package.appmanifest file are:

  <Capabilities>  
	<Capability Name="internetClient"/>  
	<DeviceCapability Name="location"/>  
	<DeviceCapability Name="webcam"/>  
  </Capabilities>  

I checked this by creating a new project (Visual Studio 2022 17.3.0 Preview 1.1) so that I didn't miss out any changes between preview releases.

Is there a workaround to this issue as I'm migrating a UWP app to MAUI with Location capability included?

210495-image-2022-06-11-143005717.png

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Larry Brindise 1 Reputation point
    2022-10-28T01:59:53.987+00:00

    Did a solution ever get identified for this? I am manually editing "app.manifest", however when I add the <capabilities> and <DeviceCapability> nodes, it doesn't matter where I add them, I get runtime errors:
    Unable to activate Windows Store app - The activation request failed with error 'This application has failed to start because the application configuration is incorrect.

    this is all very quite well documented!

    0 comments No comments