unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.45k stars 685 forks source link

The `.user` file should not override the targetframeworks if the override is not present #16507

Closed jeromelaban closed 1 week ago

jeromelaban commented 2 weeks ago

Current behavior

If .user file contains an unknown target framework, inside VS the rewrite may be incorrectly reuse that TFM if it's not present in the TargetFrameworks list.

Expected behavior

Build continues to work properly even if the target frameworks list changes.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

5.2.95

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

agneszitte commented 2 weeks ago

(Related discussion: https://github.com/unoplatform/uno/discussions/16504)