Skip to content

Update dependencies, SDKs, and target frameworks#1048

Open
vb2ae wants to merge 15 commits into
masterfrom
move_to_built_in_sdk_project_type
Open

Update dependencies, SDKs, and target frameworks#1048
vb2ae wants to merge 15 commits into
masterfrom
move_to_built_in_sdk_project_type

Conversation

@vb2ae

@vb2ae vb2ae commented May 16, 2026

Copy link
Copy Markdown
Member
  • Bump versions for test, build, and source link dependencies
  • Update MAUI projects to net10.0 and Microsoft.Maui.Controls 10.0.60
  • Raise UWP target platform version to 10.0.22621.0
  • Switch several projects to Microsoft.NET.Sdk
  • Update WinUI3 project to latest WindowsAppSDK and SDK.BuildTools
  • Add NETStandard.Library to Avalonia and Platform projects
  • Replace xunit and Xunit.StaFact with latest versions and add xunit.v3
  • Refactor MSBuild target syntax for compatibility
  • Use Array.Empty() in Parser.cs for empty triggers
  • Comment out unused UWP-specific items in Platform project

vb2ae added 11 commits May 16, 2026 07:32
- Bump versions for test, build, and source link dependencies
- Update MAUI projects to net10.0 and Microsoft.Maui.Controls 10.0.60
- Raise UWP target platform version to 10.0.22621.0
- Switch several projects to Microsoft.NET.Sdk
- Update WinUI3 project to latest WindowsAppSDK and SDK.BuildTools
- Add NETStandard.Library to Avalonia and Platform projects
- Replace xunit and Xunit.StaFact with latest versions and add xunit.v3
- Refactor MSBuild target syntax for compatibility
- Use Array.Empty<TriggerBase>() in Parser.cs for empty triggers
- Comment out unused UWP-specific items in Platform project
Switched the Azure Pipeline agent from windows-2022 to windows-2025-vs2026 to enable builds on a newer Windows environment with Visual Studio 2026. This ensures compatibility with the latest tools and features.
Updated the .NET SDK version in global.json from "9.0.x" to "10.0.300" to use the latest feature set. No other settings were changed.
Upgraded the UseDotNet@2 task in azure-pipeline.yml to use .NET SDK version 10.0.x instead of 9.0.x. This ensures the pipeline uses the latest .NET features and improvements.
Replaced manual MSBuild path setup with microsoft/setup-msbuild@v2 targeting Visual Studio 2026 (version 17.6) in both codeql-analysis.yml and dotnet.yml. Also added maui-tizen to the dotnet workload install step in dotnet.yml.
Upgraded actions in codeql-analysis.yml and dotnet.yml to newer major versions for improved features and security. Added config-file input to CodeQL init step. Updated actions/checkout to v5.
Updated actions/checkout to v6 in CI workflows and set fetch-depth: 0 in dotnet.yml. Upgraded Visual Studio version in Features.sln to 18.6.11806.211. Removed Features.UWP project and all related configuration and references from the solution. Cleaned up GlobalSection to reflect these changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs a broad toolchain refresh: SDKs are moved to .NET 10 / VS2026, NuGet build/test/source-link packages are bumped, MAUI projects re-target net10.0 (Microsoft.Maui.Controls 10.0.60), the UWP uap10.0.19041 target is dropped from Caliburn.Micro.Platform, MSBuild.Sdk.Extras is replaced with Microsoft.NET.Sdk, WinUI3 is updated to WindowsAppSDK 2.0.1, xunit is migrated to v3, and CI runners are switched to windows-2025-vs2026.

Changes:

  • Bump SDKs, tooling, and package versions (global.json, SourceLink, Nerdbank.GitVersioning, Test SDK, xunit→v3, NuGet, MAUI 10, WindowsAppSDK 2.0.1).
  • Migrate Caliburn.Micro.Platform, Caliburn.Micro.Platform.Core, Caliburn.Micro.Core(.Tests) from MSBuild.Sdk.Extras to Microsoft.NET.Sdk; drop UWP TFM; add NETStandard.Library/Xunit.StaFact to Platform; collapse multi-line MSBuild targets to single-line with &gt; entities; switch new TriggerBase[0] to Array.Empty<TriggerBase>().
  • Update CI: GitHub Actions runners → windows-2025-vs2026, action versions bumped, setup-msbuild pinned to vs-version: '17.6'; Features.sln drops the Features.UWP project; Features.UWP raises TargetPlatformVersion to 10.0.22621.0.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/global.json Pin SDK to 10.0.300.
src/Caliburn.Micro.Core/Caliburn.Micro.Core.csproj Switch to Microsoft.NET.Sdk; bump SourceLink/Nerdbank.
src/Caliburn.Micro.Core.Tests/Caliburn.Micro.Core.Tests.csproj Migrate to xunit.v3 + new test SDK; switch SDK.
src/Caliburn.Micro.Platform/Caliburn.Micro.Platform.csproj Drop UWP TFM, switch SDK, bump SourceLink, add NETStandard.Library + Xunit.StaFact (problematic).
src/Caliburn.Micro.Platform/Parser.cs Use Array.Empty<TriggerBase>().
src/Caliburn.Micro.Platform.Core/Caliburn.Micro.Platform.Core.csproj Bump SourceLink/Nerdbank.
src/Caliburn.Micro.Platform.Tests/Caliburn.Micro.Platform.Tests.csproj Migrate to xunit.v3; switch SDK; bump versions.
src/Caliburn.Micro.WinUI3/Caliburn.Micro.WinUI3.csproj Bump WindowsAppSDK to 2.0.1 + BuildTools; add SourceLink/Nerdbank update.
src/Caliburn.Micro.Xamarin.Forms/Caliburn.Micro.Xamarin.Forms.csproj Bump SourceLink/Nerdbank.
src/Caliburn.Micro.Maui/Caliburn.Micro.Maui.csproj Retarget to net10.0/MAUI 10.0.60; collapse MSBuild target syntax.
src/Caliburn.Micro.Maui.Tests/Caliburn.Micro.Maui.Tests.csproj Retarget net10.0; migrate to xunit.v3.
src/Caliburn.Micro.Avalonia/Caliburn.Micro.Avalonia.csproj Add NETStandard.Library (unnecessary); bump SourceLink; collapse target syntax.
src/Caliburn.Micro.Avalonia.Tests/Caliburn.Micro.Avalonia.Tests.csproj Migrate to xunit.v3 + StaFact 3.x.
samples/features/Features.UWP/Features.UWP.csproj Raise UWP TargetPlatformVersion to 10.0.22621.0.
samples/features/Features.sln Remove Features.UWP project + configs; bump VS version header.
azure-pipeline.yml Switch agent to windows-2025-vs2026; .NET 10.x; NuGet 7.6.0.
.github/workflows/dotnet.yml Update runners and action versions; pin setup-msbuild to 17.6 (incorrect for VS2026).
.github/workflows/codeql-analysis.yml Same runner/action updates as dotnet.yml.
Comments suppressed due to low confidence (1)

src/Caliburn.Micro.Platform/Caliburn.Micro.Platform.csproj:69

  • The UWP target framework (uap10.0.19041) has been removed from <TargetFrameworks>, but this ItemGroup has only been commented out rather than deleted, and its condition was also changed from uap10.0.19041 to uap10.0 which no longer matches any configured TFM. Since Caliburn.Micro.WinUI3 already pulls in Platforms\uap\**\*.cs and the UWP NuGet target is being dropped, leaving this commented block (along with the commented .rd.xml <None> on line 62 of the diff) is dead/confusing markup. Either restore the UWP target or remove the commented-out lines entirely.
  <!--<ItemGroup Condition="'$(TargetFramework)' == 'uap10.0'">
    <Compile Include="Platforms\uap\**\*.cs" />
    <PackageReference Include="Microsoft.Xaml.Behaviors.Uwp.Managed" Version="2.0.1" />
    <PackageReference Include="StrongNamer" Version="0.2.5" />
  </ItemGroup>-->

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Caliburn.Micro.Platform/Caliburn.Micro.Platform.csproj Outdated
Comment thread src/Caliburn.Micro.Avalonia/Caliburn.Micro.Avalonia.csproj Outdated
Comment thread .github/workflows/dotnet.yml
Comment thread .github/workflows/codeql-analysis.yml Outdated

<PropertyGroup>
<TargetFrameworks>net462;uap10.0.19041;net9.0-android;net9.0-ios;net8.0-windows;net9.0-windows</TargetFrameworks>
<TargetFrameworks>net462;net9.0-android;net9.0-ios;net8.0-windows;net9.0-windows;</TargetFrameworks>
vb2ae and others added 4 commits May 18, 2026 09:40
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants