Update dependencies, SDKs, and target frameworks#1048
Open
vb2ae wants to merge 15 commits into
Open
Conversation
vb2ae
commented
May 16, 2026
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
- 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.
Contributor
There was a problem hiding this comment.
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)fromMSBuild.Sdk.ExtrastoMicrosoft.NET.Sdk; drop UWP TFM; addNETStandard.Library/Xunit.StaFactto Platform; collapse multi-line MSBuild targets to single-line with>entities; switchnew TriggerBase[0]toArray.Empty<TriggerBase>(). - Update CI: GitHub Actions runners →
windows-2025-vs2026, action versions bumped,setup-msbuildpinned tovs-version: '17.6'; Features.sln drops the Features.UWP project; Features.UWP raisesTargetPlatformVersionto10.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 fromuap10.0.19041touap10.0which no longer matches any configured TFM. SinceCaliburn.Micro.WinUI3already pulls inPlatforms\uap\**\*.csand 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.
|
|
||
| <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> |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.