Skip to content

[iOS] Apple mobile NativeAOT test suits stopped building: task could not be loaded from the assembly #114735

@matouskozak

Description

@matouskozak

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1016183
Build error leg or test failing: Build
Affected CI: all Apple mobile NativeAOT jobs
The range of commits: 159f40e...a58e923

Log snippet:

2025-04-14T22:10:47.7365510Z ##[error]artifacts/bin/coreclr/tvos.arm64.Release/build/Microsoft.NETCore.Native.Publish.targets(74,5): error MSB4062: The "ComputeManagedAssembliesToCompileToNative" task could not be loaded from the assembly /Users/runner/work/1/s/artifacts/bin/coreclr/tvos.arm64.Release/ilc-published/netstandard/ILCompiler.Build.Tasks.dll. Could not load file or assembly '/Users/runner/work/1/s/artifacts/bin/coreclr/tvos.arm64.Release/ilc-published/netstandard/ILCompiler.Build.Tasks.dll'. The system cannot find the file specified. [/Users/runner/work/1/s/src/tests/nativeaot/SmokeTests/UnitTests/UnitTests.csproj]
2025-04-14T22:10:47.7397870Z /Users/runner/work/1/s/artifacts/bin/coreclr/tvos.arm64.Release/build/Microsoft.NETCore.Native.Publish.targets(74,5): error MSB4062: Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [/Users/runner/work/1/s/src/tests/nativeaot/SmokeTests/UnitTests/UnitTests.csproj] [/Users/runner/work/1/s/src/tests/build.proj]

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorPattern": "artifacts\\/bin\\/coreclr\\/(?:tvos|ios|tvossimulator|iossimulator)\\.arm64\\.Release\\/build\\/Microsoft\\.NETCore\\.Native\\.Publish\\.targets.+The.*task could not be loaded from the assembly ",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1016183
Error message validated: [artifacts\/bin\/coreclr\/(?:tvos|ios|tvossimulator|iossimulator)\.arm64\.Release\/build\/Microsoft\.NETCore\.Native\.Publish\.targets.+The.*task could not be loaded from the assembly ]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/16/2025 11:36:41 AM UTC

Report

Build Definition Step Name Console log Pull Request
1019283 dotnet/runtime Build Tests Log
1018649 dotnet/runtime Build Tests Log
1018037 dotnet/runtime Build Tests Log
1016183 dotnet/runtime Build Tests Log

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 4 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions