Skip to content

.NET 6 Android AOT fails on certain folder names #56163

@jonathanpeppers

Description

@jonathanpeppers

Description

Create a dotnet new android project in a folder named such as BuildAotApplicationAndBundle AndÜmläüts_arm64-v8a_False_True.

Build with -c Release -p:RunAOTCompilation=true, and you get the error:

Precompiling failed for C:\src\xamarin-android\bin\TestDebug\temp\BuildAotApplicationAndBundle AndÜmläüts_arm64-v8a_False_True\obj\Release\android-arm64\linked\System.Private.CoreLib.dll: Error: Loaded assembly 'C:\src\xamarin-android\bin\TestDebug\temp\BuildAotApplicationAndBundle And├£ml├ñ├╝ts_arm64-v8a_False_True\obj\Release\android-arm64\linked\System.Private.CoreLib.dll' doesn't match original file name 'C:\src\xamarin-android\bin\TestDebug\temp\BuildAotApplicationAndBundle And▄mlΣⁿts_arm64-v8a_False_True\obj\Release\android-arm64\linked\System.Private.CoreLib.dll'. Set MONO_PATH to the assembly's location. [C:\src\xamarin-android\bin\TestDebug\temp\BuildAotApplicationAndBundle AndÜmläüts_arm64-v8a_False_True\UnnamedProject.csproj]

A screenshot of the .binlog viewer shows odd characters as well:

image

Logs: msbuild.zip

Configuration

> dotnet --version
6.0.100-rc.1.21369.3

I believe this would also happen in Preview 7.

Regression?

No, Android AOT is a new feature.

/cc @akoeplinger @steveisok

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions