And ideas like doing it like Android also doesn't work
According to App package manifest, Every app package must include one package manifest. If you create a new appxmanifest file in the uwp, it will throw error like the follow.
The project contains 2 items that represent the app manifest: Package.appxmanifest, Test.appxmanifest. The project can contain only one app manifest
If you do want to use different Package.appxmanifest
files for some build configurations. you could edit FileGuidTest.csproj
manually.
Right Click Project-> Unload Project-> Re-Right Click Project-> Edit Project.csproj file.
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<AppxManifest Include="app.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<None Include="FileGuidTest_TemporaryKey.pfx" />
<AppxManifest Include="Test.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
Find out the above ItemGroup
node and reserve only one AppxManifest
. And then modify the follow PropertyGroup node.
<PropertyGroup>
<ApplicationManifest>Package.appxmanifest</ApplicationManifest>
</PropertyGroup>