Skip to content
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

Broken repo build #1659

Open
moltco opened this issue Nov 17, 2024 · 14 comments
Open

Broken repo build #1659

moltco opened this issue Nov 17, 2024 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@moltco
Copy link

moltco commented Nov 17, 2024

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 moltco added bug Something isn't working needs-triage labels Nov 17, 2024
@czy-29
Copy link

czy-29 commented Nov 20, 2024

I have encountered the same issue here!

@AndrewKeepCoding
Copy link
Contributor

Have you both tried opening WinUIGallery.sln?

@czy-29
Copy link

czy-29 commented Nov 20, 2024

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.

@moltco
Copy link
Author

moltco commented Nov 20, 2024

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

@AndrewKeepCoding
Copy link
Contributor

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

@AndrewKeepCoding
Copy link
Contributor

AndrewKeepCoding commented Nov 21, 2024

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.

@moltco
Copy link
Author

moltco commented Nov 21, 2024

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.

@Dealman
Copy link

Dealman commented Nov 21, 2024

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?

@czy-29
Copy link

czy-29 commented Nov 21, 2024

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!

@marcelwgn
Copy link
Contributor

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.

@czy-29
Copy link

czy-29 commented Nov 21, 2024

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!

@Jay-o-Way
Copy link
Contributor

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.

@marcelwgn
Copy link
Contributor

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 :)

@Zakariathr22
Copy link
Contributor

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

@karkarl karkarl self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants