dotnet / dotnet/project-system

Removing package reference conditioned on non-active target framework doesn't work

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

Description

```xml


net46;netstandard1.3



```

In this project `net46` is the "active" target framework (because it is first in the `TargetFrameworks` list).

Trying to remove `Newtonsoft.Json` from the non-active `netstandard1.3` subtree has no effect:

![image](https://user-images.githubusercontent.com/350947/81638302-0cbf7f00-945c-11ea-8bc8-576c0ca5bda3.png)

![image](https://user-images.githubusercontent.com/350947/81638252-e26dc180-945b-11ea-9789-c17c32e04cdc.png)

No error is shown, and nothing is changed in the tree or project file.

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.