Skip to content

NuGet.RestoreEx.targets "Object reference not set" during tvos RuntimeTests restore #126461

@kotlarmilos

Description

@kotlarmilos

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1362636
Build error leg or test failing: Build Tests step in tvos-arm64 Release AllSubsets_CoreCLR_RuntimeTests and tvos-arm64 Release AllSubsets_Mono_RuntimeTests
Pull request: #125441

Affected CI jobs: build_tvos_arm64_Release_AllSubsets_CoreCLR_RuntimeTests, build_tvos_arm64_Release_AllSubsets_Mono_RuntimeTests

Error Message

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

{
  "ErrorMessage": "NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object",
  "ErrorPattern": "",
  "BuildRetry": true,
  "ExcludeConsoleLog": true
}

Summary

NuGet restore fails with a NullReferenceException in MSBuildStaticGraphRestore.GetDependencyGraphSpec during RuntimeTests build on tvos legs:

.dotnet/sdk/11.0.100-preview.3.26170.106/NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object.
   at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.<GetDependencyGraphSpec>b__37_3(RestoreProjectAdapter project)
   at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.<>c__DisplayClass38_0`1.<GetDependencyGraphSpec>b__0(KeyValuePair`2 project)

Note

This issue was filed with the assistance of GitHub Copilot.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1362636
Error message validated: [NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/2/2026 10:17:33 AM UTC

Report

Build Definition Step Name Console log Pull Request
1373303 dotnet/runtime Build Tests Log
1372875 dotnet/runtime Build Tests Log #125439
1372007 dotnet/runtime Build Tests Log #125439
1371570 dotnet/runtime Build Tests Log #126684
1371501 dotnet/runtime Build Tests Log
1370371 dotnet/runtime Build Tests Log #125437
1370910 dotnet/runtime Build Tests Log #126652
1369438 dotnet/runtime Build Tests Log
1367026 dotnet/runtime Build Tests Log
1365045 dotnet/runtime Build Tests Log
1362636 dotnet/runtime Build Tests Log #125441

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 8 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-InfrastructureuntriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions