Skip to content

Fix SDK resolution in MicroBuild Plugin installation #16259

@ellahathaway

Description

@ellahathaway

Builds that specify an SDK version in their global.json are experiencing failures when trying to install the MicroBuild plugin:

Starting: Install MicroBuild plugin (Windows)
==============================================================================
Task         : MicroBuild Signing Plugin
Description  : Installs and configures the MicroBuild signing plugin for use during the build
Version      : 4.101.166
Author       : Microsoft
Help         : This step should be added before the MSBuild/Visual Studio Build step
==============================================================================
signType: real
zipSources: false
version: latest
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
skipAssetTest: false
ConnectedPMEServiceName: c24de2a5-cc7a-493d-95e4-8e5ff5cad2bc
Configuring the Plugins folder: /Users/runner/work/_temp/MicroBuild/MicroBuild/Plugins
Attempting to download MicroBuild.Plugins.Signing
/Users/runner/work/_temp/.dotnet-microbuild/dotnet nuget add source https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json --name internal 1309 Feed --configfile /Users/runner/work/_temp/MicroBuild/MicroBuild/Plugins/nuget.config --username ado --password *** --store-password-in-clear-text
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'nuget' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 10.0.100-rc.2.25502.107
global.json file: /Users/runner/work/1/s/global.json

Installed SDKs:

Install the [10.0.100-rc.2.25502.107] .NET SDK or update [/Users/runner/work/1/s/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
8.0.415 [/Users/runner/work/_temp/.dotnet-microbuild/sdk]

##[error]Error: The process '/Users/runner/work/_temp/.dotnet-microbuild/dotnet' failed with exit code 145
Nuget.config authenticated successfully
Creating temporary restore project: /Users/runner/work/_temp/MicroBuild/MicroBuild.csproj
/Users/runner/work/_temp/.dotnet-microbuild/dotnet new console --force --no-restore --output /Users/runner/work/_temp/MicroBuild
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 10.0.100-rc.2.25502.107
global.json file: /Users/runner/work/1/s/global.json

Installed SDKs:

Install the [10.0.100-rc.2.25502.107] .NET SDK or update [/Users/runner/work/1/s/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

Per #16091 (comment), the following steps need to be addressed to resolve the failures:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions