Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio Restore does not properly pick up package references transitively for project references outside the solution #7417

Closed
dfederm opened this issue Oct 20, 2018 · 1 comment
Labels
Functionality:Restore Product:VS.Client Resolution:BlockedByExternal Progress on this task is blocked by an external issue. When that issue is completed this can proceed

Comments

@dfederm
Copy link

dfederm commented Oct 20, 2018

When restoring in VS, if a project has a project reference outside the solution, and that project outside the solution has a PackageReference, the first project (in the sln) will not end up with that package in it's project.assets.json. It works properly when using MSBuild /t:Restore

Repro steps:

  1. Create a project A with a package reference to a package X
  2. Create a project B with a package reference to package Y
  3. Add a project reference from project A to project B
  4. Create a solution with just project A
  5. Do a restore in VS
  6. Observe that project A's project.assets.json is missing package Y
  7. From the command line and do an "msbuild /t:Restore" on project A
  8. Observe that project A's project.assets.json is properly has package Y
@nkolev92
Copy link
Member

This is by design, because NuGet depends on the project system.

Duplicate of #5820 and dotnet/project-system#2759

Please track the open issue in the project system repo.

@nkolev92 nkolev92 added Product:VS.Client Functionality:Restore Resolution:BlockedByExternal Progress on this task is blocked by an external issue. When that issue is completed this can proceed labels Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Restore Product:VS.Client Resolution:BlockedByExternal Progress on this task is blocked by an external issue. When that issue is completed this can proceed
Projects
None yet
Development

No branches or pull requests

2 participants