Skip to content

TargetPlatformMoniker should be blank if TargetPlatformIdentifier is not set #5622

@dsplaisted

Description

@dsplaisted

#5391 made it possible for the TargetPlatformIdentifier not to be set.

However, the TargetPlatformMoniker is still set in Microsoft.Common.CurrentVersion.targets if it's not already set:

<TargetPlatformMoniker Condition="'$(TargetPlatformMoniker)' == ''">$(TargetPlatformIdentifier),Version=$(TargetPlatformVersion)</TargetPlatformMoniker>

So when the TargetPlatformIdentifier is blank, the TargetPlatformMoniker is set to ,Version=.

We should update the logic so that if the TargetPlatformIdentifier is blank, the TargetPlatformMoniker won't be set.

Metadata

Metadata

Assignees

Labels

bugneeds-triageHave yet to determine what bucket this goes in.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions