lholman / OneBuild

Convention based PowerShell build for .NET http://lholman.github.io/OneBuild/
Apache License 2.0
17 stars 2 forks source link

NuGet package not acting as a solution level package #9

Closed lholman closed 9 years ago

lholman commented 9 years ago

Tested with Visual Studio 2012 (11.0.61030.00 Update 4) and NuGet Package Manager 2.8.50926.602

So, it turns out this is an inconsistency with NuGet when a solution level package has dependencies on other solution level NuGet packages, explained here in more detail: https://nuget.codeplex.com/workitem/3487

NuGet Package Manager happily does the following, installing OneBuild and its dependencies (all solution level packages themselves) nicely in to the solution:

image

When you right-click your solution and select 'Manage NuGet Packages' (i.e. using the Visual Studio Extension) you see a 'Manage' button rather than the expected 'Uninstall' you get with a solution level package:

image

Furthermore, if you attempt to install OneBuild via the Visual Studio Extension you get prompted for which project to install it to:

image

Summary It's safe to install OneBuild via either of the above but personally I'd stick with Install-Package OneBuild within the Package Manager Console and be done with it.