All Questions
Tagged with visual-studio nuget
2,341 questions
0
votes
1
answer
54
views
Visual Studio replacing dependency with a different version
I have a Visual Studio solution that consists of multiple projects like so:
Models - contains POCOs and ORM. Built on .NET Framework 4.8
Services - contains business logic. Built on .NET Core 3.1
...
0
votes
0
answers
64
views
Problem installing NuGet packages (System.Memory) C#
I was working on a console application for .NET Framework 4.8 and wanted to try to graph some results. When trying to download ScottPlot’s NuGet library (but ZedGraph also gives me the same problem), ...
0
votes
0
answers
60
views
What is the preferred way to use a nuget package in a project targeting .Net Framework containing only binaries?
I have a nuget package that was packed using the binaries published from an .net 8 project. I have used nuget pack command. Basically this is a tool(Authentication tool), which will be used by many ...
0
votes
0
answers
33
views
Use different NuGet package folder for test projects
I got several projects and their respective unit test projects in one solution. On package restore in Visual Studio, I want to restore packages from production projects into one folder, the packages ...
0
votes
2
answers
38
views
Is it possible to have nuget delay download until build?
I have a project that needs a reference to a nuget package, containing a number of dlls that it will use later.
When I install the nuget package, it instantly copies all the libraries into the correct ...
0
votes
1
answer
142
views
How to permanently remove an unused transitive NuGet package
After switching from System.Data.SqlClient to Microsoft.Data.SqlClient in one of my solutions I am unable to permanently remove unused System.Data.SqlClient from the solution as it keeps getting ...
1
vote
1
answer
211
views
Unable to get Central Package Management (CPM) to work as expected
Just in the process of converting our legacy application (.NET 4.8) to use Central Package Management instead of the individual packages.json files.
I used the .NET Upgrade Assistant for most of the ...
0
votes
1
answer
178
views
Can you now force nuget to update versions of transitive packages with transitive pinning?
There's a lot of older posts about the way that NuGet defaults to the lowest compatible version for transitive packages, and thus creates vulnerabilities in your code. It looks like until recently, ...
0
votes
0
answers
214
views
How can I ignore NU1202 error and force NuGet packages to install?
I have a project that was using .NET 9 and has a bunch of Microsoft.AspNetCore... and Microsoft.EntityFrameworkCore... version 9.0 packages installed.
I'm trying to downgrade to .NET 8. I changed all ...
0
votes
1
answer
331
views
Visual Studio[2022] is continuously prompting for login credentials when I try to restore the NuGet packages or build the solution
Visual studio[2022 enterprise] is popping up the log in credentials continuously when I try to restore the NuGet package or build the solution.
Because of this I couldn't able to run my solution or ...
0
votes
1
answer
631
views
Could not load file or assembly ‘Microsoft.IdentityModel.Abstractions, Version=6.35.0.0. Nuget version mismatch Microsoft.IdentityModel.Abstractions
I am developing a C# dll based on .NET framework 4.8.2 which will use Microsoft Graph API to send email through outlook.
For this I have added the latest Nuget packages for “Microsoft.Graph” v5.67.0 ...
0
votes
0
answers
40
views
Why does Visual Studio reference an incorrect package
The project ParentMutator.Fody references a NuGet package FodyHelper.
The project ParentMutator.Tests references the project ParentMutator.Fody.
However, the dependency graph of ParentMutator.Tests ...
0
votes
1
answer
55
views
What is System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a?
Update:
Looking for system.net on the file I see that system.net is listed twice
<Reference Include="System.Net" />
<Import Include="System.Net" />
What is reference ...
0
votes
1
answer
81
views
Visual Studio 2022: Installing/updating NuGet packages opens "Save File As" dialog for csproj file
A strange Visual Studio 2022 error just started happening today. I was trying to install/update/consolidate the NuGet packages for my .NET C# solution (which was working perfectly before), and then ...
-1
votes
1
answer
39
views
Best way to resolve NU190X issues reported in VS
I have a large project which is using 3rd party libraries. Recently i have been seeing errors advising some of the packages have vulnerabilities.
Most of these are transitive packages that need some ...