Skip to content

CI failure on 8.0: MSBuild error in <XHarnessAppBundleToTest> because of a missing directory #130860

Description

@svick

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1511237&view=logs&j=1a7f2d0f-403f-5f1a-afbb-20466d7ac54e
Build error leg or test failing: Build / ios-arm64 Release AllSubsets_NativeAOT / Send to Helix
Pull request: N/A

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

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

{
  "ErrorPattern": "sendtohelix-mobile\\.targets\\(\\d+,\\d+\\): error MSB4184: The expression \"\\[System\\.IO\\.Directory\\]::GetDirectories\\(.*?artifacts/helix/tests/?, \\*\\.app, System\\.IO\\.SearchOption\\.AllDirectories\\)\" cannot be evaluated\\. Could not find a part of the path '.*?artifacts/helix/tests'",
  "BuildRetry": false,
  "ExcludeConsoleLog": true
}
/Users/runner/work/1/s/src/libraries/sendtohelix-mobile.targets(87,9): error MSB4184: The expression "[System.IO.Directory]::GetDirectories(/Users/runner/work/1/s/artifacts/helix/tests/, *.app, System.IO.SearchOption.AllDirectories)" cannot be evaluated. Could not find a part of the path '/Users/runner/work/1/s/artifacts/helix/tests'. [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]

The line at issue in src/libraries/sendtohelix-mobile.targets seems to be:

      <XHarnessAppBundleToTest Condition="Exists('$(TestArchiveTestsRoot)')"
        Include="$([System.IO.Directory]::GetDirectories('$(TestArchiveTestsRoot)', '*.app', System.IO.SearchOption.AllDirectories))">

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1511237
Error message validated: [sendtohelix-mobile\.targets\(\d+,\d+\): error MSB4184: The expression "\[System\.IO\.Directory\]::GetDirectories\(.*?artifacts/helix/tests/?, \*\.app, System\.IO\.SearchOption\.AllDirectories\)" cannot be evaluated\. Could not find a part of the path '.*?artifacts/helix/tests']
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/16/2026 9:54:50 AM UTC

Report

Build Repository Step Name Console log Pull Request
1513554 dotnet/runtime Send to Helix Log #130724
1513383 dotnet/runtime Send to Helix Log #130915
1512245 dotnet/runtime Send to Helix Log
1512242 dotnet/runtime Send to Helix Log
1511237 dotnet/runtime Send to Helix Log

Summary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Infrastructure-librariesblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions