dotnet / dotnet/BenchmarkDotNet

Maui Publish Android AOT fails with Dia2Lib

Open
#2,489 2 comments 0 reactions 0 assignees View on GitHub
help wanted up-for-grabs
Dominant language
C#
Stars
11.5k
Forks
1.1k
Avg merge
4d 11h
Merged PRs (30d)
11

Description

**Description**
There is an issue when using BenchmarkDotNet in .Net Maui with .Net 8.
`Precompiling failed for ...\TraceReloggerLib.dll`

**Reproduceable**
Yes

**Steps to Reproduce**

Use dotnet version 8.0.100
```
dotnet new maui
dotnet add package BenchmarkDotNet --version 0.13.11
dotnet publish --framework net8.0-android
```

```
PS D:\Projects\Test\MauiBenchmarkDotNet> dotnet publish --framework net8.0-android
MSBuild version 17.8.3+195e7f5a3 for .NET
Determining projects to restore...
Restored D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj (in 1,67 sec).
MauiBenchmartl -> D:\Projects\Test\MauiBenchmartl\bin\Release\net8.0-android\MauiBenchmartl.dll
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka
.ms/dotnet-illink
Optimizing assemblies for size. This process might take a while.
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka
.ms/dotnet-illink
Optimizing assemblies for size. This process might take a while.
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka
.ms/dotnet-illink
Optimizing assemblies for size. This process might take a while.
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka
.ms/dotnet-illink
Optimizing assemblies for size. This process might take a while.
[TraceReloggerLib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\P
rojects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotnet\
packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug --nol
lvm "--aot=asmwriter,temp-path=obj\Release\net8.0-android\android-arm\aot\armeabi-v7a\TraceReloggerLib,profile-only,p
rofile=D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile=D:\
Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=armv7-
linux-gnueabi,tool-prefix=C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bin\arm-
linux-androideabi-,outfile=obj\Release\net8.0-android\android-arm\aot\TraceReloggerLib.dll.so,temp-path=obj\Release\n
et8.0-android\android-arm\TraceReloggerLib.dll.tmp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-android\and
roid-arm\aot-in\TraceReloggerLib.dll"

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot-in\TraceRelog
gerLib.dll with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000019 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot
-in\TraceReloggerLib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKey
Token=b77a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFram
ework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-arm\aot-in\TraceReloggerLib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-andr
oid]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOTID D2E401FF-9F2F-9B93-62CE-BC583562D710 [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
-blazor.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot-in\TraceReloggerLib.dll
failed. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
[TraceReloggerLib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\P
rojects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotnet\
packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug --nol
lvm "--aot=asmwriter,temp-path=obj\Release\net8.0-android\android-x64\aot\x86_64\TraceReloggerLib,profile-only,profil
e=D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile=D:\Nuget
s\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=x86_64-linu
x-android,tool-prefix=C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bin\x86_64-l
inux-android-,outfile=obj\Release\net8.0-android\android-x64\aot\TraceReloggerLib.dll.so,temp-path=obj\Release\net8.0
-android\android-x64\TraceReloggerLib.dll.tmp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-android\android-
x64\aot-in\TraceReloggerLib.dll"

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot-in\TraceRelog
gerLib.dll with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000019 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot
-in\TraceReloggerLib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKey
Token=b77a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFram
ework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot-in\TraceReloggerLib.dll
failed. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-x64\aot-in\TraceReloggerLib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-andr
oid]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOTID 00981FCF-FE43-881D-8214-015A9286EB74 [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
-blazor.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
[TraceReloggerLib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\P
rojects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotnet\
packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug --nol
lvm "--aot=asmwriter,temp-path=obj\Release\net8.0-android\android-x86\aot\x86\TraceReloggerLib,profile-only,profile=D
:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile=D:\Nugets\m
icrosoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=i686-linux-and
roid,tool-prefix=C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bin\i686-linux-an
droid-,outfile=obj\Release\net8.0-android\android-x86\aot\TraceReloggerLib.dll.so,temp-path=obj\Release\net8.0-androi
d\android-x86\TraceReloggerLib.dll.tmp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-android\android-x86\aot
-in\TraceReloggerLib.dll"

[TraceReloggerLib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\P
rojects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotne
t\packs\Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug -
-nollvm "--aot=asmwriter,temp-path=obj\Release\net8.0-android\android-arm64\aot\arm64-v8a\TraceReloggerLib,profile-on
ly,profile=D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile
=D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=aa
rch64-linux-android,tool-prefix=C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bi
n\aarch64-linux-android-,outfile=obj\Release\net8.0-android\android-arm64\aot\TraceReloggerLib.dll.so,temp-path=obj\R
elease\net8.0-android\android-arm64\TraceReloggerLib.dll.tmp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-a
ndroid\android-arm64\aot-in\TraceReloggerLib.dll"

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\aot-in\TraceRel
oggerLib.dll with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000019 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\a
ot-in\TraceReloggerLib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicK
eyToken=b77a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFr
amework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\aot-in\TraceReloggerLib.dl
l failed. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-arm64\aot-in\TraceReloggerLib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-an
droid]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOTID 7E9FD17E-CEC7-432B-CE32-3637F71E5A64 [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
-blazor.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
[Dia2Lib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\Projects\T
est\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotnet\packs\Mic
rosoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug --nollvm "--ao
t=asmwriter,temp-path=obj\Release\net8.0-android\android-arm\aot\armeabi-v7a\Dia2Lib,profile-only,profile=D:\Nugets\m
icrosoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile=D:\Nugets\microsoft.m
aui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=armv7-linux-gnueabi,tool
-prefix=C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bin\arm-linux-androideabi-
,outfile=obj\Release\net8.0-android\android-arm\aot\Dia2Lib.dll.so,temp-path=obj\Release\net8.0-android\android-arm\D
ia2Lib.dll.tmp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-android\android-arm\aot-in\Dia2Lib.dll"

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot-in\Dia2Lib.dl
l with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000065 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot
-in\Dia2Lib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77
a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net
8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm\aot-in\Dia2Lib.dll failed. [
D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-arm\aot-in\Dia2Lib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOTID E20D3CEA-F80B-9667-5429-1DD1E1DC8068 [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
-blazor.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot-in\TraceRelog
gerLib.dll with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-x86\aot-in\TraceReloggerLib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-andr
oid]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOTID 3BBE4873-62B7-8120-9662-6F7894519CCF [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
-blazor.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000019 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot
-in\TraceReloggerLib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKey
Token=b77a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFram
ework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot-in\TraceReloggerLib.dll
failed. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
[Dia2Lib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\Projects\T
est\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotnet\packs\Mic
rosoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug --nollvm "--ao
t=asmwriter,temp-path=obj\Release\net8.0-android\android-x64\aot\x86_64\Dia2Lib,profile-only,profile=D:\Nugets\micros
oft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile=D:\Nugets\microsoft.maui.c
ontrols.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=x86_64-linux-android,tool-pre
fix=C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bin\x86_64-linux-android-,outf
ile=obj\Release\net8.0-android\android-x64\aot\Dia2Lib.dll.so,temp-path=obj\Release\net8.0-android\android-x64\Dia2Li
b.dll.tmp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-android\android-x64\aot-in\Dia2Lib.dll"

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot-in\Dia2Lib.dl
l with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000065 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot
-in\Dia2Lib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77
a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net
8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x64\aot-in\Dia2Lib.dll failed. [
D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-x64\aot-in\Dia2Lib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOTID 18B9E263-1D93-3573-7E56-6FD52B6BEB1A [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
-blazor.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
[Dia2Lib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\Projects\T
est\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotnet\packs\M
icrosoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug --nollvm "
--aot=asmwriter,temp-path=obj\Release\net8.0-android\android-arm64\aot\arm64-v8a\Dia2Lib,profile-only,profile=D:\Nuge
ts\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile=D:\Nugets\microso
ft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=aarch64-linux-androi
d,tool-prefix=C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bin\aarch64-linux-an
droid-,outfile=obj\Release\net8.0-android\android-arm64\aot\Dia2Lib.dll.so,temp-path=obj\Release\net8.0-android\andro
id-arm64\Dia2Lib.dll.tmp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-android\android-arm64\aot-in\Dia2Lib.
dll"

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\aot-in\Dia2Lib.
dll with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000065 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\a
ot-in\Dia2Lib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b
77a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=n
et8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-arm64\aot-in\Dia2Lib.dll failed.
[D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-arm64\aot-in\Dia2Lib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOTID 694C427E-6CFB-1B31-DF5D-D4C9259BD32E [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
-blazor.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
[1/150] _Microsoft.Android.Resource.Designer.dll -> _Microsoft.Android.Resource.Designer.dll.so
[2/150] OSExtensions.dll -> OSExtensions.dll.so
[Dia2Lib.dll] Exec (with response file contents expanded) in D:\Projects\Test\MauiBenchmartl: MONO_PATH=D:\Projects\T
est\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot-in; MONO_ENV_OPTIONS= C:\Program Files\dotnet\packs\Mic
rosoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86\8.0.0\Sdk\..\tools\mono-aot-cross.exe --debug --nollvm "--ao
t=asmwriter,temp-path=obj\Release\net8.0-android\android-x86\aot\x86\Dia2Lib,profile-only,profile=D:\Nugets\microsoft
.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui.aotprofile,profile=D:\Nugets\microsoft.maui.cont
rols.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui-blazor.aotprofile,mtriple=i686-linux-android,tool-prefix=C
:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\binutils\bin\i686-linux-android-,outfile=obj
\Release\net8.0-android\android-x86\aot\Dia2Lib.dll.so,temp-path=obj\Release\net8.0-android\android-x86\Dia2Lib.dll.t
mp,ld-name=ld,ld-flags=--no-relax -s" "obj\Release\net8.0-android\android-x86\aot-in\Dia2Lib.dll"

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Precompiling failed for D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot-in\Dia2Lib.dl
l with exit code 1. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Mono Ahead of Time compiler - compiling assembly D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\andr
oid-x86\aot-in\Dia2Lib.dll [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
rror : AOTID 2140E45A-CD24-DD5E-DC0E-C473EEC84124 [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramewo
rk=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
.aotprofile' [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Using profile data file 'D:\Nugets\microsoft.maui.controls.build.tasks\8.0.3\buildTransitive\netstandard2.0\maui
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Failed to load method 0x6000065 from 'D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot
-in\Dia2Lib.dll' due to Could not load file or assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77
a5c561934e089' or one of its dependencies.. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net
8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : Run with MONO_LOG_LEVEL=debug for more information. [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::Targ
etFramework=net8.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\targets\Microsoft.Android.Sdk.Aot.targets(109,5): e
rror : AOT of image D:\Projects\Test\MauiBenchmartl\obj\Release\net8.0-android\android-x86\aot-in\Dia2Lib.dll failed. [
D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj::TargetFramework=net8.0-android]
[4/150] Gee.External.Capstone.dll -> Gee.External.Capstone.dll.so
[5/150] CommandLine.dll -> CommandLine.dll.so
[6/150] Iced.dll -> Iced.dll.so
[7/150] Microsoft.Bcl.AsyncInterfaces.dll -> Microsoft.Bcl.AsyncInterfaces.dll.so
[8/150] BenchmarkDotNet.dll -> BenchmarkDotNet.dll.so
[9/150] Microsoft.CodeAnalysis.CSharp.dll -> Microsoft.CodeAnalysis.CSharp.dll.so
[10/150] MauiBenchmartl.dll -> MauiBenchmartl.dll.so
[11/150] Microsoft.CodeAnalysis.dll -> Microsoft.CodeAnalysis.dll.so
PS D:\Projects\Test\MauiBenchmartl> dotnet publish
MSBuild version 17.8.3+195e7f5a3 for .NET
Determining projects to restore...
Restored D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj (in 1,58 sec).
C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.CrossTargeting.targets(31,5): erro
r NETSDK1129: The 'Publish' target is not supported without specifying a target framework. The current project targets
multiple frameworks, you must specify one of the following frameworks in order to publish: net8.0-android, net8.0-ios,
net8.0-maccatalyst, net8.0-windows10.0.19041.0 [D:\Projects\Test\MauiBenchmartl\MauiBenchmartl.csproj]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.