Skip to content

LinkerHintGeneratorTask doesn't correctly determine the TFM #14085

Open
@Youssef1313

Description

@Youssef1313

Current behavior

var runtimeTargetFramework =
new Version(TargetFrameworkVersion) >= new Version("7.0")
? "net7.0"
: "netstandard2.0";

Expected behavior

I think using TargetFrameworkVersion value directly here should work now that we don't have netstandard.

I don't know the effect of this wrong calculation though.

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)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/code-generationCategorizes an issue or PR as relevant to code generationdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions