dotnet / dotnet/sdk

Platform/RuntimeIdentifier clashes

Open
#49,935 22 comments 0 reactions 1 assignee Claimed by @baronfel View on GitHub
Area-NetSDK
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

I have the following in my csproj file: -

```xml
x64;ARM64
osx-x64;osx-arm64
osx-arm64
osx-x64
```

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.