Skip to content

GitHub Actions Fails Due to Missing .NET SDK 9.0 #3270

@gladjohn

Description

@gladjohn

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

latest

Web app

Not Applicable

Web API

Not Applicable

Token cache serialization

Not Applicable

Description

GitHub Actions Fails Due to Missing .NET SDK 9.0

Reproduction steps

view gh actions after merge to main

https://github.com/AzureAD/microsoft-identity-web/actions/runs/13536457823/job/37828942719

Run cd benchmark && dotnet run -c release -f net8.0 --filter 'Benchmarks.TokenAcquisitionBenchmark.*' --exporters json
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'run' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.102
global.json file: /home/runner/work/microsoft-identity-web/microsoft-identity-web/global.json

Installed SDKs:

Install the [9.0.102] .NET SDK or update [/home/runner/work/microsoft-identity-web/microsoft-identity-web/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
[8](https://github.com/AzureAD/microsoft-identity-web/actions/runs/13553231812/job/37881646611?pr=3268#step:4:9).0.406 [/usr/share/dotnet/sdk]
Error: Process completed with exit code 145.

Error message

Run cd benchmark && dotnet run -c release -f net8.0 --filter 'Benchmarks.TokenAcquisitionBenchmark.*' --exporters json
The command could not be loaded, possibly because:

  • You intended to execute a .NET application:
    The application 'run' does not exist.
  • You intended to execute a .NET SDK command:
    A compatible .NET SDK was not found.

Requested SDK version: 9.0.102
global.json file: /home/runner/work/microsoft-identity-web/microsoft-identity-web/global.json

Installed SDKs:

Install the [9.0.102] .NET SDK or update [/home/runner/work/microsoft-identity-web/microsoft-identity-web/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
8.0.406 [/usr/share/dotnet/sdk]
Error: Process completed with exit code 145.

Id Web logs

No response

Relevant code snippets

Run cd benchmark && dotnet run -c release -f net8.0 --filter 'Benchmarks.TokenAcquisitionBenchmark.*' --exporters json
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'run' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 9.0.102
global.json file: /home/runner/work/microsoft-identity-web/microsoft-identity-web/global.json

Installed SDKs:

Install the [9.0.102] .NET SDK or update [/home/runner/work/microsoft-identity-web/microsoft-identity-web/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
8.0.406 [/usr/share/dotnet/sdk]
Error: Process completed with exit code 145.

Regression

No response

Expected behavior

should run without errors

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions