-
Notifications
You must be signed in to change notification settings - Fork 387
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
Show assemblies within shared framework targeting packs #4444
Comments
Has some overlap with #4362. |
This should be mostly covered by #4362 but it's good to have this be a distinct issue. We currently went with "references" as the name, but that's definitely up for discussion. As far as how they're displayed, the tree view that we have today for packages-that-are-really-shared-framework-references looks like it already has the desired structure. |
Tracked by AB#827445 |
@dsplaisted how do you envisage this working in the case that two FrameworkReferences bring in the same reference? |
Conflict resolution should choose the reference that's used, and that reference should have metadata on it that indicates which shared framework it came from. Another case is when there are multiple framework references referring to different profiles of the same shared framework. I'd suggest displaying that like this:
|
This is very similar to #1413. I commented there:
|
This would mean re-implementing the logic to understand targeting packs, which currently lives in the A possibility would be to move the logic to understand targeting packs into MSBuild itself, as APIs that the project system could call. It does something similar with the reference assemblies in Program Files for .NET Framework, and we will probably be adding some understanding of the new targeting packs to MSBuild as part of dotnet/designs#81 |
This addition to the project system would help improve the experience for fro Fakes in .NET Core. In .NET Framework, a user can right click on an assembly reference like System.Core or System.Net.HTTP to generate a fakes assembly, but this isn't possible in a .NET Core project. Without this, currently there isn't a good experience in generating a fakes assembly for the assemblies that are shipped with the SDK. |
For .NET Core 3.0, we will be using targeting packs to deliver references for shared frameworks.
We've discussed that we would like these to be displayed in the solution explorer dependencies tree, something like this:
We'll need to decide what metadata should be set on these references to indicate which shared framework they are a part of, add that metadata in the SDK, and modify the project system to populate the dependencies tree based on that data.
The text was updated successfully, but these errors were encountered: