dotnet / dotnet/project-system

Allow add/remove reference within one of many target frameworks

Open
#5,927 1 comment 0 reactions 1 assignee Claimed by @drewnoakes View on GitHub
Feature-Dependency-Node Feature-Multi-Targeting Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/350947/75506313-b54f6c80-5a31-11ea-982b-2df86944e512.png)

In this multi targeting project, removing a reference from a single target framework currently removes it from all target frameworks.

This is probably what you want most of the time, but the user lacks the ability to remove from a single target framework via the UI.

Perhaps add a new menu item "Remove from .NETFramework 4.5".

The case of adding is more challenging, as the context must be carried through the subsystems that select references (e.g. Reference Manager and Package Manager).

@davkean pointed to [`IConditionalPackageReferencesService`](http://index/?leftProject=Microsoft.VisualStudio.ProjectSystem&leftSymbol=xwopgxg9nrqa&file=References%5CIConditionalPackageReferencesService.cs&line=37) in CPS which supports adding and removing with conditions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.