Take the 2-minute tour ×

For some reason Nuget ignores the default project I select from the drop down and always installs packages into my startup web project. I have a utility project, specifically for things like library dependencies and want Nuget to install packages there, but it always goes for the web project.


I eventually figured this out. It turns out that the solution file was under one particular projects directory. This was not how I normally create a solution, but I didn't create this originally so it didn't occur to me that this was the cause.

share|improve this question
add comment

1 Answer

try using command with project name

PM> Install-Package EntityFramework -ProjectName DataProvider

or Just right click on the Solution and select Manage NuGet Packages. when you install it allows selecting the set of projects to install the package into.

hope one of above will work for you.

share|improve this answer
Nope! I removed all signs of nuget packages from my project, ran a command based on your example and even though it will add the correct references to the project I specified, it downloads the files to the web project. I even made my utility project the default startup project, and it still downloads to the web app. Frustrating! –  cadmium May 17 '12 at 19:30
add comment

Your Answer


