Questions tagged [nuget]

NuGet is a free, open source developer focused package management system for the .NET platform.

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.

11613 questions
6
votes
1 answer

Create NuGet package from multiple projects, including NuGet dependencies

I have a solution where I want to create a NuGet package from two of the projects. If it were just one project, I'd use the .csproj file to spec the NuGet packager, but since I want two different projects to go into the finished package, I can't do…
Petter Brodin
  • 2,069
  • 4
  • 21
  • 27
6
votes
3 answers

installed Microsoft.VisualStudio.QualityTools.UnitTestFramework does not appear in nuget package list

I am working with VS2013, .NET4.5 I was looking to use Microsoft.VisualStudio.TestTools.UnitTesting.TestCategoryAttribute on my tests to disable them in build server. I was unable to find it in Add reference -> Assemblies so I figured to use nuget…
Matas Vaitkevicius
  • 58,075
  • 31
  • 238
  • 265
6
votes
1 answer

NuGet reference specification with an assembly not in lib subfolder

I have a fairly complex and large project that I want to attempt to package as a nuget package for internal use. I want to avoid copying files, because there are quite a few (150 MB+ of binaries). Instead, I am trying to point a package blueprint…
6
votes
2 answers

Trying to get a PowerShell script to run a nuget.exe command

I'm trying to run the following command in a PowerShell script. nuget pack MyNuGetSpec.nuspec -Version 1.2.3-alpha When I have this PS code, I get an error.. Code: "NuGet packing $file to a .nupkg ..." $exe = $path + "nuget.exe pack $file -Version…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
6
votes
2 answers

Broken references in a cloned git repo

Many times when I clone a git repo most or all of the references are broken. The dlls are not there. I searched and found nothing about the problem. I feel like it has something to do with nuget. What's the problem?
alin
  • 115
  • 5
6
votes
3 answers

NLog giving exception Possible explanation is lack of zero arg and single arg Common.Logging.Configuration.NameValueCollection constructors

I added NLog to my application and the test project for it. Both of them part of the same solution. From inside the application NLog works. But from test project get below exception: Unable to create instance of type…
PUG
  • 4,301
  • 13
  • 73
  • 115
6
votes
2 answers

How do you extract a version number from nuspec into TeamCity?

How do you extract a version number from nuspec into TeamCity? We have a csproj file with this corresponding nuspec node: 1.3.2 In TeamCity I'd like to do a build of this project and create a NuGet package with version 1.3.2.%build.counter%. For…
infojolt
  • 5,244
  • 3
  • 40
  • 82
6
votes
1 answer

Publishing NuGet Packages - TeamCity

I have just setup TeamCity to automate our builds, our current solution has both a dev and main branch. What I am trying to achieve is to have the development branch build and publish to a development NuGet feed on our ProGet installation, and then…
user351711
  • 3,171
  • 5
  • 39
  • 74
6
votes
2 answers

Nuget Dependencies not getting installed

I am running a private Nuget Server locally on IIS. I am creating packages and uploading them all via commadline using nuget.exe (Later on I have to put this on build server, hence the command line). However there is one issue I am stuck at. I am…
NotAgain
  • 1,927
  • 3
  • 26
  • 42
6
votes
2 answers

Could not install package MvvmCross.PortableSupport 3.2.1 at Visual Studio 2013 for PCL Profile 158

I have the following setup and still couldn't add mvmcross libraries to my project: VS2013 Update 3 Nuget Package Manager 2.8.50313.46 PCL Profile 158 (I also tried other like 78, etc) Install log is below: Attempting to resolve dependency…
Mando
  • 11,414
  • 17
  • 86
  • 167
6
votes
0 answers

Error on installing ASP.NET Identity 2 Samples

I'm trying to install ASP.NET Identity 2 samples project. I open Visual Studio 2013, create an empty ASP.NET project, open Package Manager Console and type: Install-Package Microsoft.AspNet.Identity.Samples -Pre After some time of installing it…
Aleksey Shubin
  • 1,960
  • 2
  • 20
  • 39
6
votes
1 answer

How to Reset HintPath After Changing Repository Path

I have a Visual Studio 2012 solution with several projects. All the projects are unable to build because the location NuGet is restoring packages to is different than what is indicated by all the hintPath tags inside the various VS projects. How do…
Brent Arias
  • 29,277
  • 40
  • 133
  • 234
6
votes
2 answers

Where is jQuery UI combined package downloaded when insatlled using nuget

I have downloaded the jQuery UI Combined package using nuget in my MVC project using the command Install-Package jQuery.UI.Combined Now I have to add the stylesheet(css) reference of that package in on of my view, but I don't know where the…
AbdulRahman Ansari
  • 3,007
  • 1
  • 21
  • 29
6
votes
2 answers

What do Package Statistics in Nuget.org mean?

I was looking at my nuget package statistics on nuget.org and I can see that the vast majority of downloads are from "Unknown" operations via "Other" clients. Does anyone know what they mean? p.s. is this the right SE site for the question? I…
Hossein
  • 1,090
  • 1
  • 8
  • 24
6
votes
1 answer

Why is my solution building with the wrong dll version?

I'm using Microsoft.SQLServer.Types to use the spacial type. I'm installing version 11.x from Nuget. When I publish the solution using Visual studio (2013) it's copying version 11.x to the bin folder. However, when I build using MSBuild, it's…
Piers Karsenbarg
  • 3,105
  • 5
  • 31
  • 67
1 2 3
99
100