microsoft / microsoft/WindowsAppSDK

Fail to restore NuGet packages for WindowsAppSDK projects

Open
#5,241 7 comments 0 reactions 1 assignee Claimed by @RDMacLachlan View on GitHub
area-Infrastructure needs-triage
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

I follow the steps from here https://github.com/microsoft/WindowsAppSDK/blob/main/docs/Coding-Guidelines/GettingStarted.md

When I get to the step to execute `nuget.exe /restore`, I am asked to login with my microsoft account when DevCheck.cmd get to this line

```
PS D:\source\WindowsAppSDK> .\nuget.exe restore
MSBuild auto-detection: using msbuild version '17.13.15.12501' from 'C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\bin'.
Restoring NuGet package Microsoft.Build.Tasks.Git.1.1.1.
Restoring NuGet package Microsoft.SourceLink.Common.1.1.1.
Restoring NuGet package Microsoft.Windows.CppWinRT.2.0.230706.1.
Restoring NuGet package Microsoft.Windows.ImplementationLibrary.1.0.240803.1.
Restoring NuGet package Microsoft.SourceLink.GitHub.1.1.1.
Restoring NuGet package Microsoft.Taef.10.95.240918004.
Restoring NuGet package Microsoft.Windows.SDK.BuildTools.10.0.22621.756.
WARNING: [CredentialProvider]User canceled authentication.
[CredentialProvider]DeviceFlow: https://microsoft.pkgs.visualstudio.com/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.

**********************************************************************

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code L5SLX6DRM to authenticate.

**********************************************************************
```

when I login i get this error (I am entering the code L5SLX6DRM when asked )

![Image](https://github.com/user-attachments/assets/6793f8a7-7885-4543-a2f1-d15b9782ba02)

### Steps to reproduce the bug

execute .\nuget.exe restore

### Expected behavior

.\nuget.exe restore to complete without errors

### Screenshots

_No response_

### NuGet package version

None

### Packaging type

_No response_

### Windows version

_No response_

### IDE

_No response_

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.