microsoft / artifacts-credprovider

The Azure Artifacts Credential Provider enables dotnet, NuGet.exe, and MSBuild to interactively acquire credentials for Azure Artifacts feeds.
MIT License
747 stars 709 forks source link

Problem starting the plugin - Broken Pipe #458

Closed rdanielsSWBC closed 9 months ago

rdanielsSWBC commented 9 months ago

Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:3.1.425-bionic AS build

2023-10-27T06:41:16.6414458Z Determining projects to restore... 2023-10-27T06:41:17.7379770Z It was not possible to find any compatible framework version 2023-10-27T06:41:17.7380336Z The framework 'Microsoft.NETCore.App', version '6.0.0' was not found. 2023-10-27T06:41:17.7380793Z - The following frameworks were found: 2023-10-27T06:41:17.7381111Z 3.1.31 at [/usr/share/dotnet/shared/Microsoft.NETCore.App] 2023-10-27T06:41:17.7381262Z 2023-10-27T06:41:17.7381527Z You can resolve the problem by installing the specified framework and/or SDK. 2023-10-27T06:41:17.7382730Z 2023-10-27T06:41:17.7383435Z The specified framework can be found at: 2023-10-27T06:41:17.7384651Z - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=ubuntu.18.04-x64 2023-10-27T06:41:17.7485485Z /usr/share/dotnet/sdk/3.1.425/NuGet.targets(128,5): error : Problem starting the plugin '/root/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll'. Broken pipe [/src/Source/

/.Web.csproj] 2023-10-27T06:41:19.1501738Z /usr/share/dotnet/sdk/3.1.425/NuGet.targets(128,5): error : Unable to load the service index for source https://pkgs.dev.azure.com/ [/src/Source/.csproj]

rdanielsSWBC commented 9 months ago

Use the following then using a dotnet core 3.1 to download the credential provider:

curl -fsSL https://aka.ms/install-artifacts-credprovider.sh | USE_NET6_ARTIFACTS_CREDENTIAL_PROVIDER=false bash