Skip to content

Native Assets should emit a helpful error message if any combination of artifact or version are not present #10705

@garath

Description

@garath

Winforms discovered an unhelpful error in build 1980038 (there are many other examples). This cause appears to be that the repository's global.json specifies cmake version 3.21.0 but the machine has version 3.22.5 (knowable by navigating to the image name in helix.dot.net, or from browsing the generation source.

The interesting block of log is:

Processing D:\a\_work\1\s\global.json
at <ScriptBlock>, D:\a\_work\1\s\eng\common\init-tools-native.ps1: line 101
at <ScriptBlock>, D:\a\_work\1\s\eng\common\init-tools-native.ps1: line 87
at InitializeNativeTools, D:\a\_work\1\s\eng\common\tools.ps1: line 649
at <ScriptBlock>, D:\a\_work\1\s\eng\common\Build.ps1: line 150
##[error](NETCORE_ENGINEERING_TELEMETRY=NativeToolsBootstrap) Cannot index into a null array.
Killing running build processes...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions