Skip to content

Platform/RuntimeIdentifier clashes #49935

@ChrisSpenceley

Description

@ChrisSpenceley

I have the following in my csproj file: -

<Platforms>x64;ARM64</Platforms>
<RuntimeIdentifiers>osx-x64;osx-arm64</RuntimeIdentifiers>
<RuntimeIdentifier Condition=" '$(RuntimeIdentifier)' == '' And '$(Platform)' == 'ARM64' ">osx-arm64</RuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(RuntimeIdentifier)' == '' And '$(Platform)' == 'x64' ">osx-x64</RuntimeIdentifier>

when I select ARM64 from the config dropdown and attempt to to debug, I get the following error: -

The RuntimeIdentifier platform 'osx-x64' and the PlatformTarget 'arm64' must be compatible

if I select x64 from the config dropdown and attempt to to debug, I get the following error: -

The RuntimeIdentifier platform 'osx-arm64' and the PlatformTarget 'x64' must be compatible

If I comment out the RuntimeIdentifiers tags then it runs ok.
Can't remove RuntimeIdentifiers as our ADO pipeline fails without them there.

This doesn't seem right, please advise.

This was using the latest version of Rider on an M2 Mac.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions