Nuget restore task failed

tarun k 280 Reputation points
2025-06-25T14:59:35.8366667+00:00

I am seeing following error in the restore task: (command is restore )

 C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.Web.CodeGeneration.Design. No packages exist with this id in source(s): Artifactory
                     C:\azp\agent\_work\1\s\source\R2T2Core\R2T2Core.csproj : error NU1101: Unable to find package Microsoft.VisualStudio.Web.CodeGeneration.Design. No packages exist with this id in source(s): Artifactory [C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj]
                     C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj : error NU1101: Unable to find package Net.IBM.Data.Db2. No packages exist with this id in source(s): Artifactory
                     C:\azp\agent\_work\1\s\source\R2T2Core\R2T2Core.csproj : error NU1101: Unable to find package Net.IBM.Data.Db2. No packages exist with this id in source(s): Artifactory [C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj]
                     C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj : error NU1102: Unable to find package NuGet.Frameworks with version (>= 6.5.0)
                   C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj : error NU1102:   - Found 100 version(s) in Artifactory [ Nearest version: 6.2.0 ]
                     C:\azp\agent\_work\1\s\source\R2T2Core\R2T2Core.csproj : error NU1102: Unable to find package Microsoft.Extensions.Primitives with version (>= 9.0.0) [C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj]
                   C:\azp\agent\_work\1\s\source\R2T2Core\R2T2Core.csproj : error NU1102:   - Found 100 version(s) in Artifactory [ Nearest version: 7.0.0-rc.2.22472.3 ] [C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj]
                     C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj : error NU1102: Unable to find package Microsoft.Extensions.Primitives with version (>= 9.0.0)
                   C:\azp\agent\_work\1\s\source\R2T2CoreTests\R2T2CoreTests.csproj : error NU1102:   - Found 100 version(s) in Artifactory [ Nearest version: 7.0.0-rc.2.22472.3 ]

We are using following image:

 mcr.microsoft.com/windows/servercore:ltsc2019 


We are using a machine that was created from above image. On this machine, we are attempting to run a restore operation, but we are encountering the error mentioned above.

Additionally, I can confirm that the following is also installed on the machine:

  --add Microsoft.VisualStudio.Workload.NetWeb`;includeRecommended `
        --add Microsoft.VisualStudio.Workload.Azure`;includeRecommended `
        --add Microsoft.VisualStudio.Workload.Data`;includeRecommended `
        --add Microsoft.VisualStudio.Workload.ManagedDesktop`;includeRecommended `
        --add Microsoft.VisualStudio.Workload.Node`;includeRecommended `
        --add Microsoft.VisualStudio.Workload.Python`;includeRecommended `
        --add Microsoft.Net.Component.4.5.2.TargetingPack `
        --quiet `


so please suggest what is causing the issue?

Developer technologies .NET Entity Framework Core
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.