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
1 answer

How do I remove a nuget package from multiple solutions/projects?

We have a few hundred Visual Studio solutions of varying ages and we have an internally written NuGet package that many of them consume. We want to eliminate this NuGet package and remove it from these solutions and their projects (no more reference…
Paul G
  • 2,722
  • 4
  • 37
  • 54
1
vote
0 answers

How to add extern alias for three same namespace assemblies in .Net Core 2.2

By Referring below sample, I can able to alias two assemblies. But is this possible to alias three assemblies. if yes, please guide me. https://github.com/NuGet/Samples/blob/master/ExternPackageReference.Example/ConsoleApp/ConsoleApp.csproj Thanks…
1
vote
1 answer

How to create NuGet package for AzureFunctions V2 to push to Octopus for deployment?

I want to create a Nuget package of my Azure functions V2 project so that i can push it to octopus for deployment. But I am facing issues, Currently I am using dotnet pack <.csproj> to package my code into .nupkg. If I use simple console .net core…
Bilal Shafqat
  • 689
  • 2
  • 14
  • 26
1
vote
0 answers

Build error - The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?

I have just opened a project that was working fine the other day. No changes were made to the code but now when I open it I get errors The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an…
coolblue2000
  • 3,796
  • 10
  • 41
  • 62
1
vote
0 answers

Cannot reference my nuget package namespace

Repro I have created my FIRST nuget package. Package project targets net standard 2.0. It is built and published by azure pipeline: ... - task: VSBuild@1 ... - task: VSTest@2 ... - task: NuGetCommand@2 inputs: command: pack …
zolty13
  • 1,943
  • 3
  • 17
  • 34
1
vote
0 answers

Specifying Nuget Package Platform Target

I want to create a Nuget Package for a C# library that targets .NET Framework 4.0 and higher. If I put my library in a directory named Net40, will this cause issues for projects that target say 4.1 and higher? Should i just publish my library in a…
Russell Chidhakwa
  • 339
  • 2
  • 5
  • 16
1
vote
1 answer

Dependencies getting copied to private feed in Azure DevOps

I have set up a build pipeline for a model library that's shared between several of my projects. I'm accessing it through a private feed in Azure DevOps, and it works just fine. I can retrieve the library in Visual Studio and my projects all get…
TheDoc
  • 688
  • 2
  • 14
  • 33
1
vote
1 answer

C#: How to install System.Web

I am using Visual Studio Code version 1.42 on my Ubuntu 18.04. I just successfully installed sudo dotnet add package Google.Apis.Drive.v3 via terminal but I can't find a way to install System.Web on my C# project. I tried many different ways: 1)…
Emanuele
  • 2,194
  • 6
  • 32
  • 71
1
vote
1 answer

What to do about versioning with Chocolatey?

I am using Chocolatey to make installers for a bunch of different tools, but the versions I need for some of these tools are considered outdated and are not available as packages on the Chocolatey package repository. What should I do?
1
vote
0 answers

DbContext not working from Package Manager Console

I am unable to Scaffold-DbContext from Package Manager Console. I have to do this instead "dotnet ef dbcontext scaffold" Is there anything I can do to fix this on my PC?
software is fun
  • 7,286
  • 18
  • 71
  • 129
1
vote
1 answer

Version number of NuGet pacakge specified in .csproj doesn't match version number of package

I've generated a new NuGet package and when I add it to a project the reference is wrong. This is kind of hard to describe but I'll do my best. The last version of this package was 3.3.11.0. I modified the code of the package, changed the…
Ben_G
  • 770
  • 2
  • 8
  • 30
1
vote
1 answer

Debug NuGet package using Azure Devops Symbole Server resulting to class not found

I've been playing around with Azure Devops lately to host a NuGet package as an artifact, which I would then use in another project of mine. So far so good, I managed to get the package and to use it as intended, but I'd like to be able to debug it…
1
vote
1 answer

Include code analyzers in a nuget package

I currently have 25+ repositories to maintain. For all these repositories I would like to add Code Analysis using Roslyn analyzers. Because I want to have to control over the analyzers that are being used from one central location. My idea was to…
Richard Mosselveld
  • 702
  • 1
  • 6
  • 21
1
vote
1 answer

Enable NuGet package manager in VS Installer through command line. (as part of automated script)

I want to enable NuGet package manager through the command line but I am not sure how to do it. We have a Jenkins pipeline that installs MSBuild15 BuildTools (using choco commands) and I need to enable NuGet package manager as part of the automated…
1
vote
1 answer

Unable to find package ***. No packages exist with this id in source(s): "Local Nuget", Microsoft Visual Studio Offline Packages, nuget.org

I have to one library which I want to package and use in other projects. This library has reference to another project, that I do not want to publish as a package. To include it in the package I have added this lines in .cproj file: …
user12832050
  • 13
  • 1
  • 3
1 2 3
99
100