WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Broken repo build

Open moltco opened this issue 1 year ago • 17 comments

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

moltco avatar Nov 17 '24 23:11 moltco

I have encountered the same issue here!

czy-29 avatar Nov 20 '24 02:11 czy-29

Have you both tried opening WinUIGallery.sln?

AndrewKeepCoding avatar Nov 20 '24 02:11 AndrewKeepCoding

Have you both tried opening WinUIGallery.sln?

Yes, but later I deleted the entire repository and cloned it again, and then opened the correct sln file, but the problem still exists.

czy-29 avatar Nov 20 '24 03:11 czy-29

@AndrewKeepCoding can you clone from scratch and compile with vs 17.12 without issues?

moltco avatar Nov 20 '24 18:11 moltco

@moltco I just did it to reconfirm it and works (compiles and runs) both WinUIGallery.sln and WinUIGallery.DesktopWap.sln. 🤔

AndrewKeepCoding avatar Nov 21 '24 00:11 AndrewKeepCoding

For some reason you might have issues downloading packages from: https://pkgs.dev.azure.com/shine-oss/microsoft-ui-xaml/_packaging/MUX-Dependencies/nuget/v3/index.json

or some configuration issues on Nuget Package Manager.

AndrewKeepCoding avatar Nov 21 '24 00:11 AndrewKeepCoding

That's what I thought too @AndrewKeepCoding but I can open the link in browser and have no custom nuget or VS configuration so I thought maybe that's a link to a private Microsoft nugetbor somesuch.

Will try installing manually with nuget to see where it gets me.

moltco avatar Nov 21 '24 07:11 moltco

Same issue here using Visual Studio 17.12.1. Can't even download it manually using nuget, getting this error; NotFound https://pkgs.dev.azure.com/shine-oss/4ac19aec-8963-4452-80e5-70636e9ee157/_packaging/af27d749-fc85-4439-9fe3-94ec321597a3/nuget/v3/flat2/microsoft.windowsappsdk/1.3.230331000/microsoft.windowsappsdk.1.3.230331000.nupkg 861ms

I noticed if I try and go to that URL manually via my browser, it opens a log-in prompt. Whereas the other nupkg URLs do not. Possibly a server-sided misconfiguration?

Dealman avatar Nov 21 '24 14:11 Dealman

Same issue here using Visual Studio 17.12.1. Can't even download it manually using nuget, getting this error; NotFound https://pkgs.dev.azure.com/shine-oss/4ac19aec-8963-4452-80e5-70636e9ee157/_packaging/af27d749-fc85-4439-9fe3-94ec321597a3/nuget/v3/flat2/microsoft.windowsappsdk/1.3.230331000/microsoft.windowsappsdk.1.3.230331000.nupkg 861ms

I noticed if I try and go to that URL manually via my browser, it opens a log-in prompt. Whereas the other nupkg URLs do not. Possibly a server-sided misconfiguration?

Facing the same thing!

czy-29 avatar Nov 21 '24 16:11 czy-29

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.config and you should be able to build the project correctly.

marcelwgn avatar Nov 21 '24 16:11 marcelwgn

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.config and you should be able to build the project correctly.

Okay, after deleting nuget.config, I can successfully build it. Thank you!

czy-29 avatar Nov 21 '24 16:11 czy-29

Okay, after deleting nuget.config, I can successfully build it. Thank you!

Simple solution. I do expect an "official" solution, because I just had the same issue.

Jay-o-Way avatar Nov 27 '24 15:11 Jay-o-Way

Okay, after deleting nuget.config, I can successfully build it. Thank you!

Simple solution. I do expect an "official" solution, because I just had the same issue.

This issue is definitely on our radar :)

marcelwgn avatar Nov 27 '24 15:11 marcelwgn

I think this is related to the changes made to nuget.config in #1636 Image

Zakariathr22 avatar Dec 02 '24 20:12 Zakariathr22

It seems that the latest WinUI 3 Gallery can be built by Visual Studio 2022 17.14.2 without deleting nuget.config.

manabu-nakamura avatar May 28 '25 05:05 manabu-nakamura

It seems that the latest WinUI 3 Gallery can be built by Visual Studio 2022 17.14.2 without deleting nuget.config.

I still need to delete it 🤔

Zakariathr22 avatar May 28 '25 08:05 Zakariathr22

I still need to delete it 🤔

Thank you for letting me know. It seemed that the latest WinUI 3 Gallery can be built by Visual Studio 2022 17.14.2 and 17.14.3 after deleting C:\Users\...\.nuget and cloning it (without deleting nuget.config).

manabu-nakamura avatar May 28 '25 09:05 manabu-nakamura