I saw this error with the CoreCLR and Libraries "Restore internal tools" steps while trying to develop official builds:
Build FAILED. "/Users/runner/runners/2.160.1/work/1/s/eng/common/internal/Tools.csproj" (Restore target) (1) -> (Restore target) -> /Users/runner/runners/2.160.1/work/1/s/.dotnet/sdk/5.0.100-alpha1-015772/NuGet.targets(123,5): error : Value cannot be null. (Parameter 'folderName') [/Users/runner/runners/2.160.1/work/1/s/eng/common/internal/Tools.csproj]
#1016 removes internal tooling to unblock the official build, but this needs to be fixed and re-enabled.
| # TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024 |
| # # IBCMerge is currently Windows-only and x86/x64-only |
| # - ${{ if and(eq(parameters.osGroup, 'Windows_NT'), or(eq(parameters.archType, 'x64'), eq(parameters.archType, 'x86'))) }}: |
| # - name: ibcOptimizeArg |
| # value: '-ibcoptimize' |
| # TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024 |
| # # Install internal tools on official builds |
| # # Since our internal tools are behind an authenticated feed, |
| # # we need to use the DotNetCli AzDO task to restore from the feed using a service connection. |
| # # We can't do this from within the build, so we need to do this as a separate step. |
| # - ${{ if and(and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')), eq(parameters.osGroup, 'Windows_NT')) }}: |
| # - task: DotNetCoreInstaller@0 |
| # inputs: |
| # packageType: 'sdk' |
| # version: '2.1.503' |
| # - task: DotNetCoreCLI@2 |
| # displayName: Restore internal tools |
| # inputs: |
| # command: restore |
| # feedsToUse: config |
| # projects: '$(Build.SourcesDirectory)/eng/common/internal/Tools.csproj' |
| # nugetConfigPath: 'eng/internal/NuGet.config' |
| # restoreDirectory: '$(Build.SourcesDirectory)\.packages' |
| # verbosityRestore: 'normal' |
| # externalFeedCredentials: 'dotnet-core-internal-tooling' |
| # TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024 |
| # - ${{ if eq(parameters.isOfficialBuild, true) }}: |
| # - task: DotNetCoreCLI@2 |
| # displayName: Restore internal tools |
| # condition: and(succeeded(), ne(variables['_skipRestoreInternalTools'], 'true')) |
| # inputs: |
| # command: restore |
| # feedsToUse: config |
| # projects: 'eng/common/internal/Tools.csproj' |
| # nugetConfigPath: 'eng/internal/NuGet.config' |
| # restoreDirectory: '$(Build.SourcesDirectory)\.packages' |
| # verbosityRestore: 'normal' |
| # externalFeedCredentials: 'dotnet-core-internal-tooling' |
| <!-- TODO: (Consolidation) Fix internal tool restore and re-enable. https://github.com/dotnet/runtime/issues/1024 --> |
| <!-- <UsingToolIbcOptimization>true</UsingToolIbcOptimization> --> |
I saw this error with the CoreCLR and Libraries "Restore internal tools" steps while trying to develop official builds:
#1016 removes internal tooling to unblock the official build, but this needs to be fixed and re-enabled.
runtime/eng/pipelines/coreclr/templates/build-job.yml
Lines 83 to 87 in 385121f
runtime/eng/pipelines/coreclr/templates/build-job.yml
Lines 111 to 130 in 385121f
runtime/eng/pipelines/libraries/build-job.yml
Lines 68 to 80 in 385121f
runtime/eng/Versions.props
Lines 18 to 19 in 385121f