Questions tagged [nuget-package]

NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio.

NuGet is a free open source developer focused package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development. NuGet is a member of the ASP.NET Gallery in the Outercurve Foundation.

Get started on nuget.org and find documentation on docs.nuget.org

To see NuGet in action, watch this video from MvcConf 2 and this one from DevDays 2011 Netherlands.

3630 questions
1
vote
0 answers

Cannot get rid of nuget warning NU5128 about missing dependency group

[Env: nuget.exe 5.9.1.11, VS Pro 2019 16.9.6, W10 x64 1909] I am having trouble configuring the dependencies section of my .nuspec file so nuget generates a package which correctly contains the Dependency for .NET Framework 4.7.2. I consistently get…
Conrad
  • 2,197
  • 28
  • 53
1
vote
1 answer

For some reason EntityFramework Core just does not exist anywhere

I don't know why, but EntityFramework Core has completely vanished for me. It's gone from the Microsoft namespace and does not exist anywhere in the NuGet package browser or even the dotnet CLI direct install. I tried fully uninstalling and…
Aquaphor
  • 129
  • 10
1
vote
2 answers

Azure Pipeline dotnet push error finding nuget package

My code for the azure pipeline I have Problems using the azure pipeline, which will automatically pack my libraries on azure devops git and push it as a nugetpackage to artifacts. I get the error ##[error]No packages matched the search pattern. at…
1
vote
0 answers

Fody - System.Security.SecurityException: Invalid assembly public key

I just tried adding a Fody NuGet package to my C# project and now anytime I try to build I get the following error. error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly. error MSB4018: System.Security.SecurityException: Invalid…
AcceleratXR
  • 43
  • 1
  • 3
1
vote
1 answer

How to push nuget package to Azure Artifacts?

Hi I have created very basic class library project and created .nupkg. I am trying to push package using the below command nuget.exe push -Source -ApiKey az . To my bad whenever I do it says 'nuget.exe' is not recognized as an internal or external…
1
vote
1 answer

How to add public packages from github to my .Net solution

I am trying to add packages from https://github.com/orgs/DKE-Data/packages to my asp.net project. Here are the things I have tried Download the package.nupkg file and add the location to the package manager source but it does not allow me to…
1
vote
0 answers

How to convert nuget package/ C# code to dart pub package?

Background : I have few nuget packages (C# repo) and i am trying to access those in Flutter Dart code. Is there any option we can consume nuget/c# code in Flutter dart pub package?
1
vote
1 answer

C++ CLR NuGet Package Error: Installation Failed

So I'm using C++ to work on a project and I've created a GUI. I tried to use NuGet to instead a package However, it keeps bringing up this error: Could not install package 'MetroModernUI 1.4.0'. You are trying to install this package into a project…
PackOf20
  • 334
  • 2
  • 17
1
vote
0 answers

.NET Core Web API Newtonsoft.Json Nuget Dependency Warning

I have the following Web API solution structure with three projects in a .NET 5 Web Api . +-- Api.csproj | +-- Dependencies | | +-- Projects | | | +-- Infrastructure.csproj | | | | +-- Dependencies | | | | | +--…
Terry
  • 2,148
  • 2
  • 32
  • 53
1
vote
1 answer

3rd party Nuget package developers should target which `AspNetCore` package version?

I have a question described in the title. In more details: I'm working on a set of Blazor Components. It has many projects each packaged and published as Nuget packages. But of course all projects depends on some AspNetCore Nuget packages. Currently…
Major
  • 5,948
  • 2
  • 45
  • 60
1
vote
2 answers

How to push 11mb .zip file into devops Repo

I'm working on a git repo where we have 11mb .zip file which has 4 folder and rar file packages under that. Now I have made some changes into xml file which is one of the folder in Repo. While pushing to my branch I'm getting this error. "The…
Gaurav Joshi
  • 861
  • 1
  • 11
  • 17
1
vote
2 answers

Self signed certificate in certificate chain - NuGetToolInstaller

I have configured an Azure DevOps pipeline. When I try to run NuGetToolInstaller, I received ERR:self signed certificate in certificate chain. What is the solution to this error?
MartinV
  • 13
  • 1
  • 3
1
vote
1 answer

Error: Unable to load the service index for source when adding to Visual Studio

I created a CI/CD pipeline within a custom GitLab instance. In the pipeline I create and push the code as NuGet packages. Now I want to use GitLab as package source in Visual Studio and I get the error: [gitlab] Unable to load the service index for…
user8289962
1
vote
1 answer

Copy nuget package content file (of type .exe) to output directory of project using that nuget package

I have some project which has some exe as "dependency" and I build that project as nuget package from .csproj file File looks like this: netstandard2.0
Vlado Pandžić
  • 4,879
  • 8
  • 44
  • 75
1
vote
1 answer

Unable to PUSH nupkg to the existing feed in Azure DevOps

I'm trying to PUSH a nupkg to exisiting Feed in Azure DevOps. When I do it using Powershell scripts, I get the error 'The Specified source is invalid.Provide a valid source' even though the source is valid. When I try to recreate a source with the…
Fayaz shaik
  • 157
  • 1
  • 2
  • 12