Click here to Skip to main content
15,893,594 members
Everything / NuGet

NuGet

NuGet

Great Reads

by Nick Polyak
Describes how to install dynamically loaded plugins as nuget packages
by DannyVarod
Fast, stable and powerful creation of NuGet packages
by Stuart Wheelwright
How to produce and publish a NuGet package using AppVeyor, the free continuous build service
by Simon Jackson
MonoGame 3.2 NuGet packages are GO!

Latest Articles

by Nick Polyak
Describes how to install dynamically loaded plugins as nuget packages
by Kevin Mack
What's the need for a private Nuget feed
by CodingCoyote
Tutorial using the Build Task NuGet Package Template with GitHub or `dotnet new`
by Benktesh Sharma
How to handle 'Which has higher version than referenced assembly' error (Error CS1705) through Package Manager Console

All Articles

Sort by Updated

NuGet 

8 Jan 2024 by Lawyer Sonia
To build a NuGet with visible user control in the toolbox of the consumer app, make sure your UI project is configured to build a NuGet on the build. In your UI project, include the assembly references and package metadata, as well as the user...
8 Jan 2024 by Member 10146711
I have created a NuGet package containing a WPF user control in VS 2022 and I just can't figure out how to get the control to appear in the toolbox of the consumer application. I used the Pack command from the drop down menu of the user control...
17 Aug 2023 by temuco
All under .NET 7.0 Given is a custom library isential.crypt.dll that contains no external dependencies. A NuGet package was created from it and stored in a local package source. A second custom library named isential.MySqloverSsh.dll uses three...
16 Aug 2023 by temuco
I noticed that there is a difference between the version of a NuGet package and the version of the assembly it contains. Previously, I had set the assembly version to "1.0.*", which meant that it was automatically incremented with each build....
1 Mar 2023 by Kevin Dzimiera 2022
Moin Dave Kreskowiak, Vielen Dank für die Hilfe. Habe es ausprobiert und es funktioniert nicht aber ich geben dir das Ergebins was ich bekommen habe bzgl. (Install-Package Microsoft.VisualBasic ...
1 Mar 2023 by Kevin Dzimiera 2022
PM> Install-Package Microsoft.VisualBasic Install-Package : Das Paket "Microsoft.VisualBasic" wurde in der Quelle "" nicht gefunden. In Zeile:1 Zeichen:1 + Install-Package Microsoft.VisualBasic + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +...
1 Mar 2023 by Dave Kreskowiak
You do not supply what you think is the filename of the package. NuGet doesn't work that way. The package name to install is just "Microsoft.VisualBasic". This will install the latest available stable version. Install-Package...
1 Mar 2023 by Kevin Dzimiera 2022
Der Parameter "Source" wird für Projekte mit transitiver Paketverwaltung nicht berücksichtigt: Powerpacks1. Es werden die aktivierten Quellen in Ihrer NuGet-Konfiguration verwendet. Pakete für...
1 Mar 2023 by RickZeeland
If you want to install Visual Basic you should use the Visual Studio installer.
2 Feb 2023 by Dave Kreskowiak
You don't fix that. There is only one version of the 'Microsoft.ReportView.Common' package available, and that's 10.0.40219.1. That package is not the "official" Microosft package, and hasn't been in active development for the last 9 years! The...
2 Feb 2023 by parthapratimdey007
I am using VS 2013 for a webform project. But when adding a rdlc report I am getting the bellow message "NuGet Package restore failed for project VTS: Unable to find version '10.0.0.0' of package 'Microsoft.ReportViewer.Common'.." What I have...
17 Jan 2023 by Nick Polyak
Describes how to install dynamically loaded plugins as nuget packages
28 Dec 2022 by EstKells
I want to use the nuget Package ClosedXML, but when I install it and want to execute my Code I always got this Exact error Message: The file or assembly "DocumentFormat.OpenXml, Version=2.16.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17"...
15 Dec 2022 by Member 15752716
In VS2015 I could install nuget packages, a packages folder and a packages.config file were automatically created in my solution. Also references were automatically added. In VS2017 however I can't install any nuget package, I get an error...
15 Dec 2022 by Member 15752716
@Richard Deeming: Webview2 isn't the problem, I downloaded this example and it works just fine. I now downloaded VS2019 but I get the same error: DLL not registred. When I look up the error "Exception from HRESULT: 0x8002801D...
12 Aug 2022 by lalitjoshilalit
0 We are using mentioned package in our project and suddenly getting the below error in Azure build pipeline. The NuGet command failed with exit code(1) and error(Unable to find version '1.1.2' of package 'Kendo.DynamicLinq'....
12 Aug 2022 by lalitjoshilalit
Thanks @Richard Deeming. I had found below package to fix this issue. There is a GitHub repository for the package: GitHub - kendo-labs/dlinq-helpers: Add server paging, filtering and sorting via Dynamic Linq[^]
9 Aug 2022 by Richard Deeming
There is no such package on NuGet: NuGet Gallery | Packages matching Kendo.DynamicLinq[^] The only results are: wilx.Kendo.DynamicLinq.Core, Codout.Kendo.DynamicLinq, and KendoNET.DynamicLinq. There is a GitHub repository for the package:...
11 Jan 2022 by Xarzu
I am starting a new coding job with a new client. The problem I am having is that a lot of issues with namespaces that can not be found or maybe missing directives or an assembly reference. This, I think, is a common thing. So I am wondering...
11 Jan 2022 by Maciej Los
I'd suggest to read these articles: Troubleshooting NuGet Package Restore in Visual Studio | Microsoft Docs[^] Reinstalling and Updating NuGet Packages | Microsoft Docs[^] And finally, i'd suggest to Migrate from packages.config to...
9 Jan 2022 by Xarzu
Using Visual Studio Community version, I have code that requires using the GeoPoint class. After doing some search online I found that it is likely that this class is part of the Microsoft Windows.Devices.Geolocation namespace. I have...
9 Jan 2022 by OriginalGriff
You can't. Microsoft do not release code using NuGet - if it is part of .NET 4, then you need to install the whole of .NET 4 and update your whole app to use that version of the framework as you cannot "mix'n'match" a later .NET version assembly...
22 Nov 2021 by Member 11007594
I came across this old post, but here's a lead: Install and manage NuGet packages in Visual Studio | Microsoft Docs[^] I think a good option for you would be to add the internal source to your nuget.config in your project. You probably found...
22 Nov 2021 by Jamie888
hi I have a project developed using .NET Core 1.1 MVC and have just recently created a new repository in Azure DevOps. I have uploaded all the necessary files into the DevOps and build the project. But I encounter an error stating "Packages failed to restore" and further troubleshooting leads to...
19 Oct 2021 by gcogco10
Hi Team I want to create Add-Migration eNtsaMigration, i kept receiving this message each time. I have installed all the required packages on my project. Especially for creating Migration. What could be an issue? No DbContext was found in...
28 Jul 2021 by acalafiore
Hi all, first time asking a question but I wasn't able to find a solution to my problem yet. We are starting a new project in .NET and we choose to divide it in differente libraries to maintain it easily. Or so we hope. To keep it as simple as...
28 Jul 2021 by acalafiore
I have chosen to include in each solution the project needed for references. This way there are no missing libraries while running. Not really what I wanted but it's the easiest way.
25 Jul 2021 by Chris Copeland
.NET optimizes out library references where they haven't been used. So if your "LibraryA" references a particular package but chooses not to use it, it may be optimized out of the DLL when compiled in release mode. I think the correct approach...
2 Mar 2021 by EpsilonCoder
Hi, I've following structure for a .NET Framework project: -->ProjectSoln -------->ClassLibProj1 -------->ClassLibProj2 -------->ConsumerLibProj3 I've defined GlobalAssemblyInfo.cs file at solution level and added the reference to this file in...
2 Mar 2021 by EpsilonCoder
At last I was able to resolve this issue by forcing the nuget to use release configuration while packing. Surprisingly, I was building the solution with Release profile but still nuget was getting confused somehow. I used following command nuget...
1 Mar 2021 by RickZeeland
The problem is probably that you did not use 'Add as link' for GlobalAssemblyInfo.cs in your projects. See information here: c# - How do I automatically set all projects in my solution to the same version? - Stack Overflow[^] You also need to...
11 Feb 2021 by RickZeeland
If NuGet fails to see the dependencies, you can override the behavior by changing the .nuspec file. Below information is taken from: .nuspec File Reference for NuGet | Microsoft Docs[^] Quote: To bypass this automatic behavior and explicitly...
11 Feb 2021 by EpsilonCoder
Hi, I've following structure for a .NET Framework project: -->ProjectSoln -------->ClassLibraryProj1 -------->ClassLibraryProj2 -------->ConsumerLibraryProj3 ConsumerLibraryProj3 has project reference to ClassLibraryProj1 and ClassLibraryProj2....
5 Nov 2020 by jflarvoire
I'm trying to setup a Jenkins build system, to automate the build and test of our project when a developer pushes code into our internal github server. The build system is a Windows Server Core with Jenkins and MSBuild. This works fine for a...
1 Sep 2020 by Kevin Mack
What's the need for a private Nuget feed
28 Jul 2020 by salem salah
dd-Migration TheNewmigrationName -Project TargetProjectNam
28 Jul 2020 by Sandeep Mewara
You have to specify the project name where the DbContext is located. Write something like below in the Nuget Package Manager Console: Add-Migration MigrationName -Project YourProjectName
9 Jul 2020 by CodingCoyote
Tutorial using the Build Task NuGet Package Template with GitHub or `dotnet new`
2 Jun 2020 by phil.o
Maybe a PowerShell execution policy issue. Try to issue the following command on a PowerShell window: Set-ExecutionPolicy Unrestricted -Scope CurrentUser You might have to logout/login to see the change applied to your user session.
2 Jun 2020 by gcogco10
Hi team I have an issue almost 2 weeks and want to share this problem perhaps i could get an insight of it. The issue is when i try to launch my IDE visual studio either as Admin nor normal. Nu-get console get this weird exception and dont know...
10 May 2020 by Richard MacCutchan
I already gave you the reference at The term scaffold-dbcontext not recognized as name of cmdlet[^]. Please do not repost the same questions.
10 May 2020 by Richard Deeming
You need to install the EF Core command-line tools: EF Core tools reference (.NET CLI) - EF Core | Microsoft Docs[^]
10 May 2020 by Richard MacCutchan
See EF Core tools reference (Package Manager Console) - EF Core | Microsoft Docs[^]
10 May 2020 by gcogco10
Hi Team My Scoffold-DbContext command does not seem to run and getting an exception. Basically i have an updated table definition on my database. I want my table definition to appear on my Model folder within MVC web application. What I have...
21 Jan 2020 by Bastien Vandamme
I'm looking for a library that can ease me to load official countries and sub-division (province, state, region or ... ) to fill checkbox and ensure all my user use same list of countries? Is there any C# version of Carmen Ruby Gem? Or something else that could help. GitHub -...
18 Oct 2019 by Member 13522501
hi my pc don't connect to internet. i download some package of nuget from internet. but when i install them in console of vs2015, the below errors would appeared: Install-Package : The current environment doesn't have a solution open. At line:1 char:16 + Install-Package
18 Oct 2019 by OriginalGriff
Nuget downloads packages, installs them to the active project in a solution, and adds the references as required. If you have no solution open, aor no current project within a solution, it has nowhere to add the package data to, and nowhere to add references. Open a solution, run Nuget...
18 Oct 2019 by Member 13522501
hi is it necessary to be online for use nuget? i download nuget and install it. but vs2015 don't recognize. i am offline. must be online? thanks What I have tried: i do somethings but i dont get a good result.........
18 Oct 2019 by RickZeeland
Yes you must be online, except when you have your own NuGet server, see: NuGet Package Manager for Visual Studio 2015 - Visual Studio Marketplace[^]
4 Aug 2019 by surajemo
Good day hi I am receiving the following error how do i resolve this errorError 1 This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567....
14 May 2019 by Richard MacCutchan
Look at the error messages and check why the referenced file is missing or not accessible. If all else fails contact the owner of the package.
14 May 2019 by GaneshBodke11
I have cloned one project from GitHub. when i tried to build that project, i am getting an error like : " Severity Code Description Project File Line Suppression State Error NuGet Package restore failed for project Application\BEL.FeedbackWorkflow: Unable to find version '1.5.2' of package...
7 Apr 2019 by Member 14166560
EnvDTE.DTE _ObjDTE; _ObjDTE = (EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE"); var script = "Get-Package | Select-Object Id, LicenseUrl"; _ObjDTE.ExecuteCommand("View.PackageManagerConsole", script);
7 Apr 2019 by Narendra_kvs
I would like to develop a user interface through which one can send Nuget power shell scripts to the Package manager console and get the output displayed in UI. For that i need information on how to access package manager console through c#. Can any one help me on this? Thanks in advance.
22 Mar 2019 by Benktesh Sharma
How to handle 'Which has higher version than referenced assembly' error (Error CS1705) through Package Manager Console
21 Mar 2019 by Amod Kumar Chandra
I am facing following issue NETSDK1064 Package AsyncUsageAnalyzers, version 1.0.0-alpha003 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. Can anyone help...
21 Mar 2019 by Richard Deeming
It's a pre-release package, so you'll need the IncludePreRelease flag to install it: Install-Package AsyncUsageAnalyzers -Version 1.0.0-alpha003 -IncludePrerelease Pre-release versions in NuGet packages | Microsoft Docs[^] NB: That package has not been updated in four years, and the GitHub...
5 Jul 2018 by Herman<T>.Instance
Hi Folks, I am creating websites with same css layout, same masterpage (only app title changes) and the default.aspx. I would like to add these features to a Nuget package so I could reuse the stuff again and again in stead of copy waste.... Is is possible to use a Masterpage from a DLL in...
5 Jul 2018 by GKP1992
Sharing master pages is a bad idea, but if you're willing to go through the pain, Dan Wahlin - Sharing Master Pages Across IIS Applications[^]
15 Jun 2018 by Richard Deeming
The package Microsoft.Office.Interop.Excel.15.0.4795.1000 is not listed on the official NuGet site. And I can't see any reason why it would have a dependency on the HTML Agility Pack. However, you've tagged your question as ASP.NET. Office Interop cannot be used in ASP.NET applications:...
15 Jun 2018 by kkakadiya
Hello, I need to work with Excel in my application. so, I am trying to install Microsoft.Office.Interop.Excel with nugget package but it is giving below error : Install-Package : An error occurred while retrieving package metadata for 'HtmlAgilityPack.1.8.4' from source 'E:\Sample\packages'. ...
22 May 2018 by Arun Endapally
How to create and publish a NuGet package easily
3 May 2018 by Måns Tånneryd
Extending the entity framework with bulk operations for both inserts and updates
15 Mar 2018 by RickZeeland
See answer here: c# - How to programmatically install a NuGet package? - Stack Overflow[^]
15 Mar 2018 by Gopinath0072
I created one console application to create visual studio project pragmatically, here i am not able install Nuget packages, always var componentModel = (IComponentModel)Package.GetGlobalService(typeof(SComponentModel)); statement returns null values. for your reference i added my code below....
5 Feb 2018 by yaswanthdasari
Hi, I created a parent package, it has dependency packages with targets files, when i download and install the parent package the first package's targets file is executed and remaining are not executed. Any reasons for the problem. how to resolve the issue. What I have tried: I don't know...
5 Feb 2018 by yaswanthdasari
Mistake is from my side i kept the target name as same for all the dependent packages, issue resolved
5 Feb 2018 by Dirk Bahle
Hi, I am not sure what your exact problem is because the question is rather wake but have you tried using the dependency property in the .nuspec file to ensure that these dependencies can be resolved by nuget, if so, what does you nuspec file look like? NUSPEC-Dateireferenz für NuGet |...
17 Nov 2017 by Sean Hart
How to programmatically determine Nuget Dependencies for a project
28 Sep 2017 by Girijesh Kr
Once you publish a particular version of a package to a feed, that version number is permanently reserved. You cannot upload a newer revision package with that same version number, or delete it and upload a new package at the same version. That because many package clients, including NuGet, keep...
23 Sep 2017 by Michael Freidgeim
See answeres in c# - Creating one NuGet package from multiple projects in one solution - Stack Overflow[^]
7 Sep 2017 by Member 11217090
Hi Narendra_kvs, Did you get any solution for your query? As I have also the same requirement. If you have got any solution please let me know on the same thread. Thanks.
7 Aug 2017 by Sharp Ninja
Paket is an alternative to the default nuget package manager used in Visual Studio.  Paket is completely compatible with nuget, but is much more feature rich and provides real-world benefits for library developers.
25 Jul 2017 by MiniGoel2017
I am using Visual Studio 2017 and creating .Net Standard Library. In this library, I am adding reference to WCF Service by using WCF Connected Service option. As this project is a class library, I am adding its reference in a console app (Executable project). In my .net standard project, I am...
25 Jul 2017 by Dave Kreskowiak
Yes, you have to "install-package" on every project that's going to use it, but you're only installing the executable files once in the solution. Each project is going to have references added to it where they will point to the common folder for the binaries for that library. When you build the...
7 Jun 2017 by Puresharper
NuPack is a nuget package used to add a build step to a project in order to pack output into a nuget package.
29 May 2017 by Member 9983063
Hello guys,i have getting an error of targeted framework i don't know why am getting this issue please help me and guide me what's the issue and how can i solve this Warning 1 The primary reference "SplashScreen" could not be resolved because it was built against the...
29 May 2017 by jimmson
You are referencing an assembly that has higher .NET framework version than your project has. Change your project .NET version to 4.5.2 and it should work fine.
24 May 2017 by Member 13213048
Hello, So I am getting close to making my dream application... but I may be a bit lost. I just installed a StockSharp API using NuGet. NuGet Gallery | StockSharp API (S#.API) 4.3.24[^] I can see that it has imported lots of references under the 'References' tab, but I cannot find...
24 May 2017 by ZurdoDev
From your link is a link to the API, S#.API - a free algorithmic trading API. StockSharp[^]
14 May 2017 by Sander Rossel
Creating a lightweight JavaScript library that brings proper .NET-like collections and LINQ to JavaScript.
20 Feb 2017 by Bryian Tan
Password Strength Indicator using jQuery and XML + NuGet Package
15 Nov 2016 by Pedro Costa Developer
Publish a package file into a package server and consuming it.
5 Nov 2016 by Arun Endapally
How to create and publish a NuGet package easily
4 Oct 2016 by Kausik J. Nag
In this article, we will optimize our continuous integration and development model with the use of JFrog Artifactory.
3 Oct 2016 by Kausik J. Nag
In this article we are going to implement a step by step approach for Continuous development and Integration model with a distributed version control system, artifactory, package manger and a package repository for third party libraries.
21 Sep 2016 by Mathew Soji
Please refer below .https://www.nuget.org/packages/Whatsapp.NET/[^]How to send WhatsApp Messages in C#[^]http://staging.nuget.org/packages/whatsappapi/[^]Sending WhatsApp Message Through .NET Application by Using C# Coding - DOTNET PROGRAMMER[^]
18 Aug 2016 by M,AqibShehzad
Here are some useful tools for .NET developers
15 Aug 2016 by shabarinadh.v
Hi,I have a nuget package, it is created at post build event in jenkins, I am able to create and push it to nuget.org, but, when I try to push the package with same name(id) and version number, an error is thrown, 'Package with same name and Version number already exists, cannot modify...