WinUI-Gallery: Broken repo build
Which version of the app?
WinUI 3 Gallery
Description
I cloned this repo using VS 2022 17.12 Community, opened DesktopWrapper.sln and tried to compile/run the ‘Packaged’ target as per the readme.md instructions.
The build didn’t work. It is broken. It feels dependencies and .csproj files in the solution are at fault.
I get the following errors when trying to build the ‘packaged’ target:
The feed 'MUX-Dependencies [https://pkgs.dev.azure.com/shine-oss/microsoft-ui-xaml/_packaging/MUX-Dependencies/nuget/v3/index.json]' lists package 'Microsoft.WindowsAppSDK.1.3.230331000' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again.
The feed 'MUX-Dependencies [https://pkgs.dev.azure.com/shine-oss/microsoft-ui-xaml/_packaging/MUX-Dependencies/nuget/v3/index.json]' lists package 'Microsoft.WindowsAppSDK.1.3.230331000' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again.
The runtime pack for Microsoft.Windows.SDK.NET.Ref was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'any'.
I tried restoring nuget with runtime identifier any and trying to update nuget packages - it all failed, I guess the .csproj config is preventing nuget from working properly.
Ultimately I am trying to test MediaPlayerElement examples but I can’t see a way to test/compile just those examples without the entire repo.
Could anyone help with resolving the build issues until there is a proper fix?
Screenshots
No response
Windows version
Windows 11 24H2 (26052)
Additional context
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 17 (10 by maintainers)
This issue is definitely on our radar 😃
I am able to reproduce this, I needed to delete my locally NuGet cache for this error to occur though (located under
C:\Users\[user]\.nuget\packages.As a workaround for now, you can delete the
nuget.configand you should be able to build the project correctly.Okay, after deleting
nuget.config, I can successfully build it. Thank you!@moltco I just did it to reconfirm it and works (compiles and runs) both WinUIGallery.sln and WinUIGallery.DesktopWap.sln. 🤔
Have you both tried opening WinUIGallery.sln?