sdk icon indicating copy to clipboard operation
sdk copied to clipboard

dotnet build needs to support nuget fallback package folder

Open rrelyea opened this issue 10 years ago • 9 comments

to work in concert with: https://github.com/NuGet/Home/issues/2899, dotnet build will need to understand the fallback package folder, and look at it after the nuget package folder, and before the app and shared framework. @ericstj

rrelyea avatar Jun 03 '16 19:06 rrelyea

@livarcocc @ericstj is this a preview2 issue?

TheRealPiotrP avatar Jun 06 '16 21:06 TheRealPiotrP

Cc @muratg CLI side of work is tracked by this issue.

schellap avatar Jun 07 '16 18:06 schellap

I believe NuGet is trying to land this for preview2. We essentially need all commands that evaluate package paths to consider an additional path when evaluating the packages folder here: https://github.com/dotnet/cli/blob/18f9018eb9a5ea100b65170adc25f3ad6752dd2e/src/Microsoft.DotNet.ProjectModel/Resolution/PackageDependencyProvider.cs#L159

We probably wouldn't even need to do anything if CLI and NuGet didn't have different project models.

ericstj avatar Jun 07 '16 19:06 ericstj

cc @rohit21agrawal

muratg avatar Jun 08 '16 15:06 muratg

Just left a note on the associated NuGet issue. We are waiting on an API in NuGet that can be invoked to obtain a resolved path to an asset. CLI should not be duplicating NuGet's path resolution logic.

TheRealPiotrP avatar Jun 10 '16 18:06 TheRealPiotrP

Does this relate to if you do a dotnet restore --packages mynugetdir and then a dotnet build it fails to find the dependencies?

jchannon avatar Jun 22 '16 15:06 jchannon

Actually, I'm pretty sure this feature will fix that scenario. The current design of this feature is to put the "package paths" used into the project.lock.json file. That way dotnet build can later find where the packages were restored to.

/cc @emgarten - in case I am missing anything.

eerhardt avatar Jun 22 '16 15:06 eerhardt

I think this highlights the issue too https://github.com/dotnet/cli/issues/2712

jchannon avatar Jun 22 '16 15:06 jchannon

Fixed by a48def9adec26fdc1a9b80efc4d82013156f2884.

eerhardt avatar Sep 20 '16 16:09 eerhardt