Visual Studio 2022 Xamarin Forms UWP Create App Package Error: Task 'SignAppxPackage' failed. The application has failed to start because its side-by-side configuration is incorrect.

Andrea Christy 5 Reputation points
2024-07-02T11:18:30.5366667+00:00

I am trying to create an app package (for my Xamarin Forms UWP app) to upload to the windows store.

I am using Microsoft Visual Studio Professional 2022 (ARM 64-bit) Version 17.8.3.

In Visual Studio, I right-click on the UWP project -> Publish -> Create App Packages -> Choose Microsoft Store -> check all boxes -> click Create. It starts building and then a few seconds later I get this error:

Task 'SignAppxPackage' failed. The application has failed to start because its side-by-side configuration is incorrect.

In the Windows application event log, I see this error:

Activation context generation failed for "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\arm64\signtool.exe.Manifest". Dependent Assembly Microsoft.Windows.Build.Appx.AppxSip.dll,version="0.0.0.0" could not be found. Please use sxstrace.exe for detailed diagnosis.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,362 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andrea Christy 5 Reputation points
    2024-07-02T17:00:46.69+00:00

    I found this issue:

    https://developercommunity.visualstudio.com/t/SignAppxPackage-not-working-on-ARM-Visua/10222824

    Fixed my problem by by adding this to my .csproj file:

      <ItemGroup>
        <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.19041.1" PrivateAssets="all" />
      </ItemGroup>
    
    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.