Skip to content

Fail to restore NuGet packages for WindowsAppSDK projects #5241

Open
@ekalchev

Description

@ekalchev

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-InfrastructureBuild, test, source layout, package construction (TODO: move to Deployment, DeveloperTools)needs-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions