dotnet / dotnet/arcade

When NetPrevious is set to empty, some projects have unexpected behavior

Open
#14,768 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
729
Forks
397
Avg merge
3d 15m
Merged PRs (30d)
149

Description

- [ ] This issue is blocking
- [ ] This issue is causing unreasonable pain

When `NetPrevious` and `NetMinimum` are the same, the current behavior is to null out `NetPrevious`. This avoids duplicate-TFM conflicts for projects that target both `NetPrevious` and `NetMinimum`. The bad news is that this will cause errors for single-targeted projects that just target `NetPrevious`. It's worse new for projects that multi-target target `NetPrevious` and `NetCurrent`/some other non `NetMinimum` TFM.

A solution here is that:
- `NetPrevious` should always be set
- The only set of properties you can always combine are `NetPrevious` and `NetCurrent`
- A property should be introduced that is the union of `NetPrevious` and `NetMinimum`.

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.