CodeDocu.com

 

 

When you insert the Restricted Capability row in the AppxManifest, you receive the warning that the capability cap does not allow rescap.

However, in the desktopAppConverter, it is specified as follows.

<Capabilities>

    <rescap:Capability Name="runFullTrust" />

  </Capabilities>

 

The entry in the file: package.appxmanifest

<?xml version="1.0" encoding="utf-8"?>

<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"

        xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"

      xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"

xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

        IgnorableNamespaces="uap rescap mp">

 

..

 

<Capabilities>

    <rescap:Capability Name="runFullTrust" />

  </Capabilities>

 

Warning in the appxmanifest of the Universal Windows Project

Error in Appxmanifest: rescap: Capability has invalid child element

 

 

Solution:

The text is displayed as a warning only. By incorporating the IgnorableNamespaces = "uap rescap mp", build compilation and deployment are generated without errors.

 

 

Note at Microsoft:

Restricted capabilities are available from Microsoft and its partners

 

 

Severity

Code

Description

Project

File

Line

Suppression State

Warning

 

The element 'Capabilities' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10' has invalid child element 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities'.

List of possible elements expected: 'CapabilityChoice, Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10' as well as 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10' as well as 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10/4' as well as 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10/3' as well as 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10/2' as well as 'CustomCapabilityChoice' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10' as well as 'CustomCapability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10/4' as well as 'DeviceCapability' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10'.

UWP_app

C:\_Daten\Desktop\WinForms\_test\test_Convert_WinForms\UWP_app\package.appxmanifest

27

 

 

 

If you use it but without the restriction, then comes a error message

Severity

Code

Description

Project

File

Line

Suppression State

Error

APPX0501

Validation error. error 80080204:

App manifest validation error: Line 25, Column 6, Reason: The element specified requires "runFullTrust" capability.

UWP_app

C:\_Daten\Desktop\WinForms\_test\test_Convert_WinForms\UWP_app\bin\Debug\AppxManifest.xml

1

 

 

 

Applies to: Convert a Classic Desktop application (Windows Forms application or WPF) to a UWP application, Universal Window for the Microsoft Store

According to instructions for the bride conversion


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel