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

Add SQLite dtabase file from a class library to ASP.NET Core MVC output directory on project build

I created a class library project and put my SQLite database in it, and set these lines in the .csproj file: Always
keyone2693
  • 619
  • 1
  • 4
  • 17
1
vote
1 answer

dotnet add package with source giving an unauthorize error 401 and 404 Not found

we are updating the nuget packages in dotnet application with dotnet add package "package name" from a private feed in Azure Devops. Recently we updated to .net 5.0.1( I am not sure if its related to the issue.) But now while running the above…
Siraj ur Rahman
  • 213
  • 3
  • 13
1
vote
0 answers

Why can't I use any of the functionality of my installed NuGet packages, when installed trough NuGet package manager?

I'm new to ASP.net programming (not programming in general) and are following a course online. I have a big problem, that seems to be in Visual Studio, probably with the NuGet package manager. The problem resides in, that I install the packages, but…
user11489639
1
vote
0 answers

Bin DLL's version different from dll in Nuget package

There is a library build with .net framework 4.5, it serves as a NuGet package for other projects to reference. In the testing phase, using the project reference method, it can work normally. However, after publishing it as NuGet, the project…
lljxww
  • 23
  • 4
1
vote
1 answer

Unable to Push GitHub Package for Nuget

I followed all guidance so as to be able to push a nuget package of my class library into my private GitHub repository. I added the following to my csproj net5.0
John Kears
  • 677
  • 6
  • 20
1
vote
1 answer

Can a NuGet package built with a newer version of c# be used in a project using an older version of c#?

If I build and publish a NuGet package with a Language Version of 9, can I install and reference the NuGet package in a project using a lower Language version (for example c# 7)? NuGet Package .csproj:
chris31389
  • 8,414
  • 7
  • 55
  • 66
1
vote
0 answers

Nuget package doesn't copy contentFiles specified in .nuspec

I have a custom nuspec file for a c# project. In this example, the project is supposed to produce a nuget package which has an exe and a folder with some extra content in it.
SomeDev
  • 11
  • 1
1
vote
1 answer

Copy the nuget content folder to project output folder

I have created a nuget package with this structure: NugetName/lib/net/*.dll NugetName/contentFiles/A/*.dll NugetName/contentFiles/B/*.dll >
1
vote
0 answers

Using a NuGet package in Visual Studio with Unreal Engine 4

I have installed the Microsoft.Windows.ImplementationLibrary package using the by clicking on Manage NuGet Packages, however when I include the header ''' #include ''' & compile, it seems that it can't find it so it shows an error…
1
vote
1 answer

cannot convert from 'System.Data.SqlClient.SqlConnection' to 'Microsoft.SqlServer.Management.Common.IRenewableToken'

I am currenty creating SQLWorker class with various methods which excutes various sql commands as part of a wider framework. I have a method which is used to execute a sql scripts. as whon below: public object ExecuteScript(string sql, ExecutionType…
Eseosa Omoregie
  • 175
  • 2
  • 11
1
vote
1 answer

Is it possible to add a nuget package as runtime only dependency?

I'm working with the following projects: MyFramework.csproj (class library) MyCustomerApp.csproj (class library) References MyFramework MyLauncher.csproj (Executable program) references MyLauncherDependency.nupkg MyCustomerApp.csproj is the…
sommmen
  • 6,570
  • 2
  • 30
  • 51
1
vote
0 answers

How to Install-Package a pre-release nuget package?

This package: https://www.nuget.org/packages/Terminal.Gui/1.0.0-pre.5 Find-Package shows the pre-release versions if I use -AllowPrereleaseVersions. PS> Find-Package -Name Terminal.Gui -AllowPrereleaseVersions -AllVersions Name …
tig
  • 3,424
  • 3
  • 32
  • 65
1
vote
0 answers

libsodium.dll runtimes folder was not found

I'm using libsodium 0.10.0.0 package to implement password hashing. After installing the nuget package the entries are created in package.config and project file as below:
Kapil
  • 1,823
  • 6
  • 25
  • 47
1
vote
1 answer

How to use a more recent version of a NuGet package for dependent packages in .NET Core 3.1?

I have a NuGet package that references Newtonsoft.Json v 12.0.2. I can't access the source to that NuGet package. (Technically, NuGet Package Explorer stats that it's really >= 12.0.2 ) If I wish for that package to leverage Newtonsoft.Json v…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
1
vote
0 answers

How can I obtain the .dll's from a NuGet package?

I need the .dll's for Microsoft.SqlServer.Management.Sdk.Sfc version 15. How can I obtain them? It seems that this is distributed as a "NuGet package". Fair enough, but the computer (B) I need it for does not have the means to download it. I need to…
birgersp
  • 3,909
  • 8
  • 39
  • 79