This project is read-only.
1

Closed

Build breaks when referencing project in a different solution

description

When referencing a project using the NuGet package in a different solution than originally setup for it, the build process can break, even when the 2nd solution doesn't depend on the NuGet packages that are being generated.

Steps to reproduce:
1) Create a new solution with a single Class Library project.
2) Add the "NuGet for MSBuild" package to the Class Library project.
3) Create a second new solution with a Console Application project.
4) Add the Class Library project from the first solution into the second solution.
5) Add a reference to the Class Library project from the Console Application project.
6) Attempt to build the solution.

Expected Behavior:
A warning or something would be displayed that it couldn't find the NuGet.exe if the solution doesn't directly depend on the NuGet packages. Otherwise, if it directly depends on them, have an error displayed.

Actual Behavior:
The build breaks and doesn't indicate why. The user must enable diagnostic logging to see what caused the failure.
Closed May 22, 2014 at 11:07 PM by jeff_winn
Resolved in changeset 81074.

comments