Skip to content

SupportedOSPlatform assembly attributes are not getting generated for version less platform name #13494

@buyaa-n

Description

@buyaa-n

SupportedOSPlatform assembly attributes are not getting generated for version less platform name

In dotnet/runtime#39989 (comment) we decided to rename MinimumOSPlatformAttribute into RemovedInOSPlatformAttribute and support version less platform name. We had renamed the attribute with #12775 but the version less attribute name support is missing

<PropertyGroup>
  <TargetFramework>net5.0-windows</TargetFramework>
</PropertyGroup>

Only works when adding a valid version

<PropertyGroup>
   <TargetFramework>net5.0-windows7.0</TargetFramework>
</PropertyGroup>

CC @adamsitnik @jeffhandley @terrajobst @wli3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions