910 questions
1
vote
1
answer
133
views
Nuget restores of Microsoft packages are taking extremely long to install [closed]
We've been having problems with nuget restores of Microsoft packages on our build server taking an extremely long time. As an example, Microsoft.Extensions.Configuration took 3 minutes to get "...
0
votes
1
answer
211
views
Access NuGet Feed from Another Azure DevOps Organization Without Nuget Config file Change in my repo
In Azure DevOps, if a pipeline runs in one organization and needs to restore packages from a NuGet feed in another organization, is there a way to do that without modifying the existing nuget.config ...
-1
votes
1
answer
48
views
Unable to add nuget to .net project
I have a Hello World.net project, and when I run the following commands:
dotnet add package Humanizer --version 2.13.14
dotnet restore
I am seeing the following error:
C:\platzi\consoleapp\...
0
votes
0
answers
100
views
Why isn't NuGet restore passing an authentication header?
I have my own NuGet server running with an authenticated private feed. To add credentials to the client calling it I use the following:
dotnet nuget add source https://localhost:7228/nuget/v3/index....
0
votes
2
answers
428
views
Azure Devops: dotnet publish can't find the package because it's searching in the wrong source
We've got an Azure classic pipeline (not YAML) that builds a solution with a mix of net core and traditional net projects. It has several steps and it looks something like this:
Some of the projects ...
0
votes
1
answer
28
views
Warning SD0001 Dependency storage1 is stale and does not exist in any other service dependencies profile
My .NET 8 Azure Functions solution builds with the following warning.
Warning SD0001
Dependency storage1 is stale and does not exist in any other service dependencies profile. It either needs to be ...
1
vote
0
answers
57
views
How to configure .NET to use the system proxy?
I work in a corporate network. It requires a connection through a proxy to connect to the internet. The development occours on windows. How to configure dotnet, so dotnet restore and dotnet tool ...
1
vote
1
answer
273
views
dotnet restore not equivalent to VS 2022 (restore option in context menu for solution)
I have a solution with many many sub projects (104), and we are using two sources for nuget packages, one in Azure Devops Artifacts and the other is nuget.org.
We have in the first one, packages for a ...
0
votes
0
answers
147
views
Visual Studio Package References Keep Going Missing
Every time I rebuild a WPF project in Visual Studio 2022 the package references break and I get the error that "Some assembly references are missing. Building to restore the NuGet cache might ...
0
votes
1
answer
2k
views
Restore all nuget packages in Azure pipeline YML
I have a MAUI application that is stored in a Github repo. Along with that repo there is a custom nuget package also stored in Github Packages. I have no problems with all needed processes when in ...
0
votes
1
answer
287
views
Missing NuGet packages in Azure Pipeline
I am running my Azure pipeline to build a .net solution and create an artifact for deployment. I have included a NuGet Restore step before the Build Solution step, but I get multiple instances of the ...
1
vote
1
answer
472
views
NU1301 Unable to load the service index for source [Visual Studio accessing Azure Artifact package feed]
In VS2022 17.11.0 I am right clicking my solution and selecting Restore Nuget Packages
I then see a dialog asking
"Let's get you signed in" Nuget MyFeedName needs your credentials.
I am ...
0
votes
1
answer
235
views
Azure Devops Problem with Nuget packages with Platform inside the name
I've got 2 nugetpackages which follow the naming convention:
SomePackage.x86 and SomePackage.x64
Locally these work by doing package reference in the following method:
<PackageReference Include=&...
1
vote
1
answer
754
views
NU1100: Unable to resolve Azure DevOps nuget package
We have an Azure DevOps nuget package that another service which is a net api uses without a problem. However, when this package is added to the worker service, pr pipeline fails at the "Restore ...
1
vote
0
answers
656
views
Nuget restore error - package signature file entry is invalid (field 'compression method' has an invalid value)
Share your knowledge of how to bypass the error NU3005 The package signature file entry is invalid. The central directory header field 'compression method' has an invalid value (8) because no explicit ...
2
votes
1
answer
2k
views
'Unable to resolve' errors in Visual Studio
I had cleared the Nuget cache in my Visual Studio 2022. After that I received errors in ALLyour text my Visual Studio projects. The errors are:
Unable to resolve 'System.IO.Pipelines (>= 8.0.0)' ...
1
vote
0
answers
537
views
VS2022 Unable to Restore NuGet packages
I am running VS2022 on Windows Server 2022 (Version 21H2 - OS Build 20348.2340) on an existing application. When I load the app it tries to restore the nuGet pkgs but I am getting the following error:
...
2
votes
1
answer
1k
views
Unable to resolve 'Microsoft.NETCore.App.Ref (= 6.0.27)' for 'net6.0' when building using .NET 8.0
I am getting the below error while trying a build a project using .NET8.
error NU1100: Unable to resolve 'Microsoft.NETCore.App.Ref (= 6.0.27)' for 'net6.0'.
The machine doesn't have internet ...
0
votes
1
answer
427
views
dotnet restore tries to restore something that it should not
I have a solution (.sln) containing a bunch of C# projects (.csproj) that I develop both in Visual Studio and in Visual Studio Code (for historical reasons; the older ones in VS, the newer ones in VSC)...
1
vote
1
answer
311
views
An error occurred while trying to restore packages. Unable to find version 'x.x.xxxx.xxx' of Moq
I am getting an below error while trying to install package 'xxx' on a project through visual studio using manage nuget packages
An error occurred while trying to restore packages. Unable to find ...
1
vote
1
answer
132
views
.NET 8 Core "unresolved symbol" when running with docker-compose
In my .NET 8 Core API app, when I run dotnet run, everything is working. But Im using a docker-compose, and there come the problems.
When I run my app with docker-compose up --build, my IDE stops to ...
4
votes
2
answers
13k
views
Unable to load the service index for NuGet source
I have created a build pipeline in Azure DevOps to build a .NET 8.0 application. The code resides in my Azure DevOps repository. I have selecteed the .NET Core template in classic editor to build the ...
1
vote
0
answers
1k
views
How to use the latest version of System.ValueTuple together with System.Text.Json in my build?
I want to use the latest version of System.ValueTuple which comes with .NetFramework 4.8 as far as I know. However, I have a dependency to System.Text.Json 8.0.1 referencing an older version (>= 4....
1
vote
1
answer
761
views
NUGET package restore error NU1106 relating to Microsoft.Extensions.Logging.Abstractions
I have an ASP.Net Core web app "Corp.App" thats has begun failing to build with NuGet error NU1106.
Corp.App has (among others)
A package reference to Corp.Package
A project reference to ...
3
votes
4
answers
3k
views
How to dotnet restore a multi-target framework in CI for testing using old version of dotnet?
I have a C# package which currently supports dotnet 8 and I'm trying to modify it to add dotnet 6 and 7 support as well. I've gotten it to build for all versions using dotnet 8 locally on my laptop, ...