Open UriZafrir opened 3 days ago
root@82398c569468:/src/Common# dotnet restore
Determining projects to restore...
/src/Common/Common.csproj : error NU1202: Package Microsoft.AspNetCore.Grpc.Swagger 0.9.0 is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Package Microsoft.AspNetCore.Grpc.Swagger 0.9.0 supports: net9.0 (.NETCoreApp,Version=v9.0)
Failed to restore /src/Common/Common.csproj (in 8.33 min).
Is Microsoft.AspNetCore.Grpc.Swagger
a dependency of your Common.csproj ? From the error message it looks like you need to be using dotnet 9 sdk instead of dotnet 8 to use this package. The fact that you got past the Unable to load the service index for source
makes me think this isn't an authentication issue.
I got past this error by downgrading the swagger to 8.11. and I still get the Unable to load the service index for source
.
what can i do?
If adding the password directly to the nuget.config with the add source command didn't work, using this cred provider with the external endpoints variable would not be expected to work either. I would recommend looking at the password. Are there any exception or error messages from the credprovider in the detailed logs after downgrading and with disableTLSCertificateValidation="true"? If so, please add them here and we can investigate further.
Describe the bug
posted here also https://github.com/dotnet/dotnet-docker/issues/6046#issue-2652208048, ive seen them pointing to this repo, so i post here also.
in on prem Azure Devops, using azure artifacts, i try to run dotnet restore in a docker container. It results in the error below. When running on the linux hosting the container, it works.
The error:
I've tried supplying the credentials in three ways, one is using commands, the other using a nuget.config file, the third with VSS_NUGET_EXTERNAL_FEED_ENDPOINTS, all fail:
dotnet nuget add source -name feed
dotnet nuget update source feed --valid-authentication-types basic --username "feed" --password xxxxx --store-password-in-clear-text
dotnet nuget list source
more details:
when i run with disableTLSCertificateValidation="true":
i get
when i run
it just gets stuck like this:
I would appreciate any assistance.
Which .NET image(s) are you using?
mcr.microsoft.com/dotnet/sdk:8.0
Steps to reproduce
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release
WORKDIR /src COPY ["Common/", "Common/"]
RUN dotnet nuget add source/nuget/v3/index.json --name feed
RUN dotnet nuget update source feed --valid-authentication-types basic --username "-feed" --password xxx --store-password-in-clear-text
RUN dotnet nuget list source
RUN dotnet restore "./Common/Common.csproj"
Other information
No response
Output of
docker version
Output of
docker info