New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Create App Packages for Microsoft Store from a .wapproj #3554
Comments
I have installed the latest Windows SDK 10.0.19041.0, and have confirmed that the issue is still present.
Please let me know of any workarounds to allow publishing the package asap, as we need to deploy the app to our client. |
It does look similar, but I'm not sure if this is quite the same one. I tried the workaround by @stevenbrix, but it didn't work for the test project. I saw that he opened an internal issue for the VS team, but I don't have visibility into its status. You should be able to reproduce it easily given the steps I provided. You don't need to download anything. I'm not sure if this issue is specifically because of using a prerelease package, but we don't have an option to roll back to the released 2.4, since we use new functionality from that prerelease. We also cannot wait for the official 2.5 release, as we need to deliver the app now. So any working workaround would be greatly appreciated. Please let me know if you need any additional information. |
@stevenbrix Can you weigh in on this issue as well? |
I looked from VS point of view:
|
@StephenLPeters and @stevenbrix is there any update on this? |
Still haven't heard anything back. We are not able to deploy our app to our client because of this. |
@jevansaks @stevenbrix thoughts ? |
Sorry for the delayed response, I'll take a look now |
@srdjanjovcic thanks for your synopsis, I missed that. Is there something wrong that the WinUI nuget is doing? |
Since it does not repro with 2.4.3 but does repro in 2.5.0 - do we know what changed between these two versions? As far as I know we did not change anything with regards to how this asset is packaged between these two versions. Are we dealing with non-prerelease versions of the package in both cases? |
@kmahone, ahh this is a release vs prerelease issue since their is no |
Which is the 'broken' case? The release or the prerelease package? |
pre-release |
It looks like the .pri file currently just points to the file instead of embedding it. I assume that embedding the file would also work. |
Agreed, in the meantime @sis2004 can you try this workaround and let me know if this works for you: <!-- This is a workaround for https://github.com/microsoft/microsoft-ui-xaml/issues/3554 -->
<Target Name="WorkaroundForIssue3554" BeforeTargets="_GenerateAppxUploadPackageFile" Returns="@(AppxUploadPackagePayload)">
<ItemGroup>
<!-- There is a duplicate of the noiseasset file. This happy little piece of code finds the duplicates-->
<_FilteredAppxPackagePayload Include="@(AppxUploadPackagePayload)" Condition="'%(AppxUploadPackagePayload.TargetPath)'=='Microsoft.UI.Xaml\Assets\NoiseAsset_256X256_PNG.png'"/>
<!-- This happy piece of code arbitrarily remove one of the duplicates based on some metadata that we can use to distinguish one of them. -->
<_AppxPackagePayloadToRemove Include="@(_FilteredAppxPackagePayload)" Condition="'%(_FilteredAppxPackagePayload.ProjectName)'==''"/>
<!-- Finally, remove one of the duplicates from the actual item group that's causing problems. This is the happiest of all the little code pieces. -->
<AppxUploadPackagePayload Remove="@(_AppxPackagePayloadToRemove)"/>
</ItemGroup>
</Target> |
@stevenbrix if you can figure out how to do that, yes we can. When I looked at this a couple years ago there was no easy way (I think confirmed by @srdjanjovcic or @SvetBonev) to do this with MSBuild items the way the targets are authored. You can do it if you invoke makepri yourself but the way XBF files get embedded is special sauce. |
Thanks, @stevenbrix . The workaround works fine both on the test project and on our actual project. I'll let you guys decide how to proceed with this issue, since ideally it should work with pre-release packages without any workarounds. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Describe the bug
Creating app packages for MS store using a Packaging project with a UWP app fails with an error about Microsoft.UI.Xaml\Assets\NoiseAsset_256X256_PNG.png
Steps to reproduce the bug
Steps to reproduce the behavior:
Expected behavior
VS should successfully create an .msixupload package for certification and submission.
NuGet package version:
[Microsoft.UI.Xaml.2.5.0-prerelease.201027002]
Windows app type:
The text was updated successfully, but these errors were encountered: