dotnet / dotnet/project-system
Build requires non-public package feeds, fails
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
## Visual Studio Version
"Latest" GA, 18.6.0 e70d7446
## Summary
[Build](https://github.com/dotnet/project-system#how-do-i-build-the-repository) fails, apparently due to NuGet feed inaccessibility.
## Steps to Reproduce
1. Install VS 18.6.0. Install Visual Studio Build tools if necessary.
2. Follow further instructions under topic ["How do I build the repository?"](https://github.com/dotnet/project-system#how-do-i-build-the-repository) (``build.cmd``, etc.).
3. Do all of the above with or without access to non-internal Microsoft or other credentials.
## Expected Behavior
The restore and build should complete successfully using instructions posted in the repo README.
## Actual Behavior
The build fails with error such as this:
```
>build.cmd /p:Restore="true"
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
Build.sln failed with 4 error(s) (14.8s)
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error
Failed to download package 'Microsoft.NETCore.App.Ref.9.0.16' from 'https:
//pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_pa
ckaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2d/nuget/v3/flat2/microsoft.netc
ore.app.ref/9.0.16/microsoft.netcore.app.ref.9.0.16.nupkg'.
Response status code does not indicate success: 401 (Unauthorized - No loc
al versions of package 'microsoft.netcore.app.ref'; please provide authent
ication to access versions from upstream that have not yet been saved to y
our feed. (DevOps Activity ID: DD644A0E-C4DD-4B01-9DEC-A68D8DD0FEDC)).
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error
Failed to download package 'Microsoft.AspNetCore.App.Ref.9.0.16' from 'htt
ps://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/
_packaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2d/nuget/v3/flat2/microsoft.a
spnetcore.app.ref/9.0.16/microsoft.aspnetcore.app.ref.9.0.16.nupkg'.
Response status code does not indicate success: 401 (Unauthorized - No loc
al versions of package 'microsoft.aspnetcore.app.ref'; please provide auth
entication to access versions from upstream that have not yet been saved t
o your feed. (DevOps Activity ID: 8C781914-F54E-4686-9262-97C66DAE0CB6)).
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error
Failed to download package 'Microsoft.WindowsDesktop.App.Ref.9.0.16' from
'https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd
3c7/_packaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2d/nuget/v3/flat2/microso
ft.windowsdesktop.app.ref/9.0.16/microsoft.windowsdesktop.app.ref.9.0.16.n
upkg'.
Response status code does not indicate success: 401 (Unauthorized - No loc
al versions of package 'microsoft.windowsdesktop.app.ref'; please provide
authentication to access versions from upstream that have not yet been sav
ed to your feed. (DevOps Activity ID: C75FB4CF-9C30-4A49-9A0C-42E0F268463C
)).
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error
Central Directory corrupt.
An attempt was made to move the file pointer before the beginning of the
file.
Build failed with 4 error(s) in 28.4s
1 file(s) moved.
Build Log: \project-system\artifacts\Debug\log\Build.binlog
```
With [Build Tools for Visual Studio](https://visualstudio.microsoft.com/downloads/?q=build+tools) installed (which includes the Azure Artifacts Credential Provider) the login prompts fail given various non-corporate Microsoft and GitHub credentials:
```
>build.cmd /p:Restore="true" /p:NuGetInteractive="true"
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]User canceled authentication.
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code A9UUGB27N to authenticate.
**********************************************************************
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code BK6D6N3VR to authenticate.
**********************************************************************
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code A4P53YNJ3 to authenticate.
**********************************************************************
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]A task was canceled.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]User canceled authentication.
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code FT8NS567F to authenticate.
**********************************************************************
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]A task was canceled.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]User canceled authentication.
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code FD9SJ96JC to authenticate.
**********************************************************************
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]User canceled authentication.
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code B3BJFFKJD to authenticate.
**********************************************************************
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]A task was canceled.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]A task was canceled.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]A task was canceled.
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code EQ3ENMDU7 to authenticate.
**********************************************************************
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code A8QALNAVT to authenticate.
**********************************************************************
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]A task was canceled.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]User canceled authentication.
[CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/azure-public/vside/_packaging/dotnet-project-system-public-packages/nuget/v3/index.json
[CredentialProvider]ATTENTION: User interaction required.
**********************************************************************
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code ETWSF8QMG to authenticate.
**********************************************************************
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): warning [CredentialProvider]A task was canceled.
Build.sln failed with 4 error(s) (606.0s)
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error
Failed to download package 'Microsoft.NETCore.App.Ref.9.0.16' from 'https:
//pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_pa
ckaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2d/nuget/v3/flat2/microsoft.netc
ore.app.ref/9.0.16/microsoft.netcore.app.ref.9.0.16.nupkg'.
The HTTP request to 'GET https://pkgs.dev.azure.com/azure-public/3ccf6661-
f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2
d/nuget/v3/flat2/microsoft.netcore.app.ref/9.0.16/microsoft.netcore.app.re
f.9.0.16.nupkg' has timed out after 100000ms.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error
Failed to download package 'Microsoft.WindowsDesktop.App.Ref.9.0.16' from
'https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd
3c7/_packaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2d/nuget/v3/flat2/microso
ft.windowsdesktop.app.ref/9.0.16/microsoft.windowsdesktop.app.ref.9.0.16.n
upkg'.
The HTTP request to 'GET https://pkgs.dev.azure.com/azure-public/3ccf6661-
f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2
d/nuget/v3/flat2/microsoft.windowsdesktop.app.ref/9.0.16/microsoft.windows
desktop.app.ref.9.0.16.nupkg' has timed out after 100000ms.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error
Failed to download package 'Microsoft.AspNetCore.App.Ref.9.0.16' from 'htt
ps://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/
_packaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2d/nuget/v3/flat2/microsoft.a
spnetcore.app.ref/9.0.16/microsoft.aspnetcore.app.ref.9.0.16.nupkg'.
The HTTP request to 'GET https://pkgs.dev.azure.com/azure-public/3ccf6661-
f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/4a9d37df-8441-4dc0-8f76-2128c2ca9b2
d/nuget/v3/flat2/microsoft.aspnetcore.app.ref/9.0.16/microsoft.aspnetcore.
app.ref.9.0.16.nupkg' has timed out after 100000ms.
C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(198,5): error The process cannot access the file 'zlc5kikt.b3x' because it is being used by another process.
Build failed with 4 error(s) in 621.3s
1 file(s) moved.
Build Log: project-system\artifacts\Debug\log\Build.binlog
```
## User Impact
Users cannot effectively access or contribute to this repository.
Contributor guide
Assessment
This issue has not been assessed yet.