Forum Discussion

TIMOTHY_MANGAN's avatar
Jul 04, 2025

.WapProj build using "unvirtualizedResources" removed entry from manifest

I have a .wapproj that needs to use RegistryWriteVirtualization (aka "Flexible Virtualization) as described in Flexible virtualization - MSIX | Microsoft Learn

This is for an MSIX package that will not be delivered via the Microsoft Store.

The changes are made to the Package.appxmanifest file, and saved.

The build action in Visual Studio removed the Capability declaration line for "unvirtualizedResources" from the Package.appxmaifest file before processing the file, leading to an error complaining that the RegistryWriteVirtualization requires this capability.

Workaround: I can mark the file read-only outside of Visual Studio to keep VS from changing the file as a temporary workaround to prove out that the code depending upon these settings works.

Why workaround is not acceptable: This workaround is not long-term viable, as other developers and automated workflows working on the project will lose the read-only setting (as it will not persist in GitHub) and have a broken build.

It is clear that the VS code looking at this file is aware of both the desktop6 and virtualization schemas and their requirements and restrictions, but seemingly, although aware of other rescap capability extensions is unaware of this one.   

Requested action: Please add support for missing capabilities declarations in Visual Studio and/or underlying tools.

No RepliesBe the first to reply

Resources