Flaubert TAGU
Flaubert TAGU

Reputation: 99

UWP package creation Error info: Packaname different

I have an issue updating my UWP app on Windows store. The issue is on the level of Visual studio (for windows). The description of the issue is the following:

Error info: error 80080204: The package with file name "MyApp_VersionNumber_x64.msix" and package full name "PackageName_VersionNumber_x64__Suffix" is not valid in the bundle because it has a different package family name than other packages in the bundle. The expected publisher is CN=PublisherName. AppName Prefix_Path\AppName\MakeAppx

The context is the following:

  1. I update the app source code, then I associated the app in the store with the one updated.
  2. In the windows related to the Application packages creation: a. I choosed the distribute the application in windows store b. Next, I choosed to always generate the application bath. (When I choose not to generate, it is impossible to publish the update because appxbundle is missing) c. I selected the build x86, x64 and ARM like I did before d. Finally I launch the creation to get the error above.

I followed multiple possible answer but nothing works. Can someone helps me to overcome this issue?

Regards.

Upvotes: 0

Views: 233

Answers (1)

FrozenAssassine
FrozenAssassine

Reputation: 1450

I had the same problem, the fix is a bit annoying, but for me it worked:

Close Visual Studio, go into your fileexplorer and open up the Folder with your project. Inside it you should find the "projectname.csproj" file. Open it up in your favorite texteditor and now follow the steps below:

1: Look for this line and also make sure it is the line with 'Release' and not 'Debug' in it:

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">

2: Inside the PropertyGroup tags you will find this line: The value can either be true or false. If it is false, change it to true

<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>

Now repeate these steps for all four Release configurations and ONLY Release not Debug:

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM64'">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">

After this, save the file and reopen Visual Studio. It now should create the package.

Upvotes: 0

Related Questions