Skip to content

.NET 6 R2R does not work with classes with umlauts in referenced assemblies #63193

@MarkusRodler

Description

@MarkusRodler

Description

Everything works with umlauts if they are in the same project but if they are in a different project then it constantly produces errors on run:
Unhandled exception. System.TypeLoadException: Could not load type 'Dummy.Umlautä' from assembly 'Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Reproduction Steps

I made a repo demonstrating this issue: https://github.com/MarkusRodler/r2r-umlauts-issue

In essence:

  1. Create a new project
  2. Enable R2R <PublishReadyToRun>true</PublishReadyToRun>
  3. Create a shared project and reference it
  4. Create a class in the shared project containing umlauts public record Umlautä();
  5. Instantiate the class in the projects Program.cs
  6. Publish it succesfully
  7. Run it with errors

Expected behavior

No TypeLoadException errors on run.

Actual behavior

TypeLoadException errors on run

Regression?

No response

Known Workarounds

No response

Configuration

.NET 6
alpine-x64

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions