Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 2022 image not updating .NET 8 sdk and doesn't include all feature bands #10728

Open
4 of 15 tasks
Styxxy opened this issue Oct 3, 2024 · 5 comments
Open
4 of 15 tasks

Comments

@Styxxy
Copy link

Styxxy commented Oct 3, 2024

Description

Compared to the windows-2019 image, the windows-2022 image doesn't update .NET 8 SDK version nor does it include any of the feature bands (1xx, 2xx, 3xx). This causes the UseDotNet task to always have to download and install the correct .NET SDK (managed through global.json).

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Image: windows-2022
Version: 20240929.1.0
Included Software: https://github.com/actions/runner-images/blob/win22/20240929.1/images/windows/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240929.1

Is it regression?

No

Expected behavior

Have the latest (at image build time) .NET 8 SDK installed as well as the latest patch of each feature band within .NET 8; which is the case in image windows-2019.

When running on vmImage: windows-2019, output of command dotnet --list-sdks:

> dotnet --list-sdks

6.0.133 [C:\Program Files\dotnet\sdk]
6.0.203 [C:\Program Files\dotnet\sdk]
6.0.321 [C:\Program Files\dotnet\sdk]
6.0.425 [C:\Program Files\dotnet\sdk]
7.0.120 [C:\Program Files\dotnet\sdk]
7.0.203 [C:\Program Files\dotnet\sdk]
7.0.317 [C:\Program Files\dotnet\sdk]
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.108 [C:\Program Files\dotnet\sdk]
8.0.206 [C:\Program Files\dotnet\sdk]
8.0.304 [C:\Program Files\dotnet\sdk]
8.0.401 [C:\Program Files\dotnet\sdk]

Actual behavior

All features bands of .NET 6 and .NET 7 are available, with .NET 8 only the default version 8.0.400 (which comes from the Visual Studio 2022 installer) is installed (and not patched!).

> dotnet --list-sdks

6.0.133 [C:\Program Files\dotnet\sdk]
6.0.203 [C:\Program Files\dotnet\sdk]
6.0.321 [C:\Program Files\dotnet\sdk]
6.0.425 [C:\Program Files\dotnet\sdk]
7.0.120 [C:\Program Files\dotnet\sdk]
7.0.203 [C:\Program Files\dotnet\sdk]
7.0.317 [C:\Program Files\dotnet\sdk]
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.400 [C:\Program Files\dotnet\sdk]

Repro steps

When running on vmImage: windows-2019, output of command dotnet --list-sdks:

> dotnet --list-sdks

6.0.133 [C:\Program Files\dotnet\sdk]
6.0.203 [C:\Program Files\dotnet\sdk]
6.0.321 [C:\Program Files\dotnet\sdk]
6.0.425 [C:\Program Files\dotnet\sdk]
7.0.120 [C:\Program Files\dotnet\sdk]
7.0.203 [C:\Program Files\dotnet\sdk]
7.0.317 [C:\Program Files\dotnet\sdk]
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.108 [C:\Program Files\dotnet\sdk]
8.0.206 [C:\Program Files\dotnet\sdk]
8.0.304 [C:\Program Files\dotnet\sdk]
8.0.401 [C:\Program Files\dotnet\sdk]

When running on vmImage: windows-2022, output of command dotnet --list-sdks:

> dotnet --list-sdks

6.0.133 [C:\Program Files\dotnet\sdk]
6.0.203 [C:\Program Files\dotnet\sdk]
6.0.321 [C:\Program Files\dotnet\sdk]
6.0.425 [C:\Program Files\dotnet\sdk]
7.0.120 [C:\Program Files\dotnet\sdk]
7.0.203 [C:\Program Files\dotnet\sdk]
7.0.317 [C:\Program Files\dotnet\sdk]
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.400 [C:\Program Files\dotnet\sdk]
@Styxxy
Copy link
Author

Styxxy commented Oct 3, 2024

It seems like version "8.0" should be added here to make it work:

"dotnet": {
"versions": [
"6.0",
"7.0"
],
"tools": [
{ "name": "nbgv", "test": "nbgv --version", "getversion": "nbgv --version" }
],
"warmup": false
},

If comparing to the image toolset definition of windows-2019 it is included there:

"dotnet": {
"versions": [
"6.0",
"7.0",
"8.0"
],
"tools": [
{ "name": "nbgv", "test": "nbgv --version", "getversion": "nbgv --version" }
],
"warmup": true
},

@vidyasagarnimmagaddi
Copy link
Contributor

Hi @Styxxy , Thanks for providing the issue .We will update once validated . thanks

@lakshminarayana02
Copy link

Hi
we are working on it and will keep you posted with the latest updates.

@MarkusRodler
Copy link

MarkusRodler commented Oct 11, 2024

@lakshminarayana02 I think I have the same problem with ubuntu-latest:
Bildschirmfoto_11-10-2024_123632_github com

@subir0071
Copy link
Contributor

Hi @Styxxy , @MarkusRodler,
As pointed out, .Net 8 default version is installed during installation of Visual Studio.
We are in internal discussion as whether to go ahead with other feature bands installation for this version.

Meanwhile, please feel free to use setup-dotnet action as given, in the below workflow snippet -

- name: Setup .NET SDK
     uses: actions/setup-dotnet@v4
     with:
        dotnet-version: | 
          8.0.403
          8.0.306
          8.0.110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants