Skip to content

Figure out a solution for setting PublishRuntimeIdentifier #24547

Closed

Description

@rolfbjarne

We had to stop setting PublishRuntimeIdentifier:

6aa6c0d

because PublishRuntimeIdentifier ends up being appended to RuntimeIdentifiers, which confuses the build when we're single-rid RuntimeIdentifier build:

https://github.com/dotnet/sdk/blob/b3cc7317b3e938b626e04fcb9ba17524a22362e7/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets#L148-L155

So we need to find a solution here, which probably means adding another opt-out for dotnet/sdk's behavior.

Activity

  1. added this to the .NET 11 milestone on Jan 22, 2026
  2. added
    bug
    on Jan 22, 2026
  3. rolfbjarne commented on May 13, 2026

    @rolfbjarne
    MemberAuthor

    Fix in progress: dotnet/sdk#54291 (which will require a follow-up fix on our side)

  4. added a commit that references this issue on Jul 16, 2026
    ac70365
  5. rolfbjarne commented on Aug 5, 2026

    @rolfbjarne
    MemberAuthor

    This fix was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions