1

enter image description here

I have a Xamarin Project and have different configuration depending upon the type of release. I want to point to different Package.appxmanifest Depending upon my configuration. How can I achieve that.

Shubham Tyagi
  • 798
  • 6
  • 21

1 Answers1

0

Different/Multiple Package.appxmanifest File depending Upon different Configuration UWP

If you do want to use different Package.appxmanifest files for some build configurations. you could edit yourproject.csproj manually.

Right Click Project-> Unload Project-> Re-Right Click Project-> Edit Project.csproj file.

<ItemGroup>
  <None Include="xxxxx_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>Test.appxmanifest</ApplicationManifest>
</PropertyGroup>

For more please refer this case reply.

Nico Zhu
  • 32,367
  • 2
  • 15
  • 36
  • You mean remove this ` Designer ` and put this `Package.appxmanifest` In all configs? So I can have multiple files with different names in my proj? – Shubham Tyagi Feb 18 '21 at 10:53
  • I have edit the answer to make it clearly. you could have multiple files with different names, but Both ItemGroup and PropertyGroup have only one element. – Nico Zhu Feb 19 '21 at 01:27
  • 1
    I do not understand what you mean by reserve only one. Out of all the manifest file , I should only keep one in Item group and rest of them in Property Group? Is that it – Shubham Tyagi Feb 19 '21 at 04:28
  • Yep, keep only one AppxManifest element in the Itemgroup. – Nico Zhu Feb 19 '21 at 05:46