Skip to content

Windows SDK dependencies removed from windows-latest Action runner #741

@Arlodotexe

Description

@Arlodotexe

Background

Originally posted by @Arlodotexe in #734 (comment)

This is very strange, we're seeing issues with Marquee here stemming from #732:

         C:\a\Labs-Windows\Labs-Windows\components\Marquee\src\Marquee.Properties.cs(5,18): error CS0234: The type or namespace name 'Text' does not exist in the namespace 'Windows.UI' (are you missing an assembly reference?) [C:\a\Labs-Windows\Labs-Windows\components\Marquee\src\CommunityToolkit.WinUI.Controls.Marquee.csproj::TargetFramework=uap10.0.17763]
         C:\a\Labs-Windows\Labs-Windows\tooling\GlobalUsings_WinUI.cs(11,33): error CS0234: The type or namespace name 'Collections' does not exist in the namespace 'Windows.Foundation' (are you missing an assembly reference?) [C:\a\Labs-Windows\Labs-Windows\components\Marquee\src\CommunityToolkit.WinUI.Controls.Marquee.csproj::TargetFramework=uap10.0.17763]

There may have been an issue with the incremental builds when the component was renamed that prevented it from running properly. I'll have to branch off main and fix this before we continue.

I'm not seeing this same error on the wasdk multitarget. In the meantime, I'll rerun this to see if it helps there.

Update: I'm not seeing any build errors locally, even in release mode. Let's wait for the CI to retry to see if it self-corrects...

Update 2: The Wasdk error provides a bit more insight, still not enough to tell exactly what happened:

       CsWinRTGenerateProjection:
         Creating directory "C:\a\Labs-Windows\Labs-Windows\components\CanvasView\src\obj\x64\Release\net9.0-windows10.0.19041.0\Generated Files\CsWinRT\".
         "C:\Users\runneradmin\.nuget\packages\microsoft.windows.cswinrt\2.2.0\cswinrt.exe" @"C:\a\Labs-Windows\Labs-Windows\components\CanvasView\src\obj\x64\Release\net9.0-windows10.0.19041.0\Generated Files\CsWinRT\cswinrt.rsp"
         "C:\Users\runneradmin\.nuget\packages\microsoft.windows.cswinrt\2.2.0\cswinrt.exe" @"C:\a\Labs-Windows\Labs-Windows\components\CanvasView\src\obj\x64\Release\net9.0-windows10.0.19041.0\Generated Files\CsWinRT\cswinrt.rsp"
    10>EXEC : error : Could not read the Windows SDK's Platform.xml at C:\Program Files (x86)\Windows Kits\10\Platforms\UAP\10.0.19041.0\Platform.xml [C:\a\Labs-Windows\Labs-Windows\components\CanvasView\src\CommunityToolkit.WinUI.Controls.CanvasView.csproj::TargetFramework=net9.0-windows10.0.19041.0]

It almost looks like Windows SDKs were removed from the runner.

Problem

The windows-latest and windows-latest-large runners are now using windows-2025 instead of windows-2022.

This is the cause of the above errors we've been seeing in CI, as the 19041 and 17763 Windows SDKs are not preinstalled in the Windows 2025 runner.

Solution

Our options are:

  • Switch to windows-2022 and windows-2022-large runners where possible
  • Update the targets to a higher version supported by windows-2025 / windows-latest
  • Install the required windows SDK as a CI job and keep windows-latest and windows-latest-large runners.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions