-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
It seems like version "8.0" should be added here to make it work: runner-images/images/windows/toolsets/toolset-2022.json Lines 315 to 324 in 7bf4ada
If comparing to the image toolset definition of runner-images/images/windows/toolsets/toolset-2019.json Lines 408 to 418 in 7bf4ada
|
Hi @Styxxy , Thanks for providing the issue .We will update once validated . thanks |
Hi |
@lakshminarayana02 I think I have the same problem with ubuntu-latest: |
Hi @Styxxy , @MarkusRodler, Meanwhile, please feel free to use setup-dotnet action as given, in the below workflow snippet -
|
Description
Compared to the
windows-2019
image, thewindows-2022
image doesn't update .NET 8 SDK version nor does it include any of the feature bands (1xx, 2xx, 3xx). This causes theUseDotNet
task to always have to download and install the correct .NET SDK (managed through global.json).Platforms affected
Runner images affected
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 commanddotnet --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 commanddotnet --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 commanddotnet --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]
The text was updated successfully, but these errors were encountered: