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

dotnet migrate should raise transitive framework assemblies from project referenes #7616

Closed
NTaylorMullen opened this issue Jan 27, 2017 · 5 comments

Comments

@NTaylorMullen
Copy link
Contributor

Trying to utilize a transitive project references framework assembly results in build errors.

Note: This used to work in project.json land (built the repro in project.json then migrated).

After discussion here the decision was to raise these framework assembly refs at the dotnet migrate level.

@livarcocc
Copy link
Contributor

Yeap. We were actually doing that in the past, but I didn't realize that one SDK implemented transitive dependencies that this was not included there as well.

I will bring back that feature.

@srivatsn
Copy link
Contributor

@livarcocc @333fred will this require keeping around project.jsons of P2Ps and cause all the ordering problems we were having for partial migrations and such?

@livarcocc
Copy link
Contributor

Sri, that's what I was thinking about. This would bring back those problems and affect VS migration.
The way I see it, we have a couple of options:

  1. Make this work if the --skip-project-references is not passed. But that means that whenever the flag is passed (100% the case for VS), projects may be migrated missing this information.
  2. Make migration find project.json for dependencies in the backup folder. But in this case, I think we should also allow for the backup folder to be passed to migration, so that migration is not aware of how VS calculates the path to this folder. This would be potentially a significant change for migration so late in the game and I am a bit nervous about taking it.
  3. Fix this in NuGet and the SDK?
  4. Do nothing. Migrate these projects wrong and have people add the references themselves.

I am not sure why NuGet decided not to honor this in the MSBuild world. But I feel like none of the options above are ideal for the stage we are in the cycle.

cc @piotrpMSFT @DustinCampbell

@jgoshi jgoshi assigned jgoshi and unassigned jgoshi Jan 30, 2017
@TheRealPiotrP
Copy link
Contributor

We're not going to be able to address this for 1.0.0. We need to take time to determine if this fix belongs in CLI, NuGet, or a combination of the two.

@livarcocc
Copy link
Contributor

This issue was moved to dotnet/cli-migrate#28

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants