Skip to content

Conversation

@jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Jan 6, 2026

This pull request updates the codebase to target .NET 11 as the default, including support for .NET 11.0-android, and upgrades related dependencies and documentation. It also improves CI scripts and configuration for the new target framework.

Target framework and SDK updates:

  • Set the default target framework to net11.0 and the stable target to net10.0 in Directory.Build.props and pipeline variables.
  • Added constants for latest and previous .NET target frameworks in XABuildConfig.cs.in.
  • Updated PREPARE_NET_FX in Makefile and improved workload manifest handling for net10 in xaprepare.

CI and build improvements:

  • Updated CI YAML templates to only run prepare-external-git-dependencies for non-forked PRs, improving security and reliability.
  • Added a new NuGet package source for dotnet-runtime.

Documentation and templates:

  • Updated documentation and issue templates to reference net11.0-android and use the new default target framework in examples.

Other configuration updates:

  • Set TargetsCurrent=true in Directory.Build.props as a temporary workaround for a known SDK issue.
  • Updated the default .NET SDK version for CI to 10.0.

These changes ensure the project is ready for .NET 11 development and testing, while maintaining support for .NET 10 as the stable release.

Squashed commit of the following:

commit e18cc6e
Author: Jonathan Peppers <jonathan.peppers@microsoft.com>
Date:   Tue Jan 6 12:14:06 2026 -0600

    Update variables.yaml

commit 1f4ee87
Author: Jonathan Peppers <jonathan.peppers@microsoft.com>
Date:   Tue Jan 6 11:44:41 2026 -0600

    Update Xamarin.Android.Common.targets

commit 2996b46
Author: Jonathan Peppers <jonathan.peppers@microsoft.com>
Date:   Mon Jan 5 13:57:39 2026 -0600

    Update Step_InstallDotNetPreview.cs

commit d77afba
Author: Jonathan Peppers <jonathan.peppers@microsoft.com>
Date:   Mon Jan 5 11:45:59 2026 -0600

    Update Step_InstallDotNetPreview.cs

commit 77daf1f
Author: Jonathan Peppers <jonathan.peppers@microsoft.com>
Date:   Mon Jan 5 11:02:43 2026 -0600

    see if we can remove dotnet10 feeds

commit 2a263a6
Author: Jonathan Peppers <jonathan.peppers@microsoft.com>
Date:   Mon Jan 5 11:02:31 2026 -0600

    Remove old feeds

commit a56cb6a
Merge: 9e4e83d 3205de6
Author: Jonathan Peppers <jonathan.peppers@microsoft.com>
Date:   Mon Jan 5 11:01:42 2026 -0600

    Merge branch 'main' into darc-main-1d9f7d07-2bbb-4810-b696-4f3fbee0c1cf

commit 9e4e83d
Author: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Date:   Mon Jan 5 05:02:00 2026 +0000

    Update dependencies from https://github.com/dotnet/dotnet build 20251219.9
    On relative base path root
    Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-11.0.100-alpha.1 From Version 11.0.100-alpha.1.25619.109 -> To Version 11.0.0-alpha.1.25619.109

commit ab4c30a
Author: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Date:   Mon Dec 29 05:03:15 2025 +0000

    Update dependencies from https://github.com/dotnet/dotnet build 20251219.9
    On relative base path root
    Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest-11.0.100-alpha.1 From Version 11.0.0-alpha.1.25614.102 -> To Version 11.0.100-alpha.1.25619.109

commit 6c52730
Author: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Date:   Mon Dec 22 05:03:05 2025 +0000

    Update dependencies from https://github.com/dotnet/dotnet build 20251219.9
    On relative base path root
    Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-11.0.100-alpha.1 , Microsoft.NET.ILLink , Microsoft.NETCore.App.Ref From Version 11.0.0-alpha.1.25614.102 -> To Version 11.0.0-alpha.1.25619.109
    Microsoft.DotNet.Build.Tasks.Feed From Version 11.0.0-beta.25614.102 -> To Version 11.0.0-beta.25619.109
    Microsoft.DotNet.Cecil From Version 0.11.5-alpha.25614.102 -> To Version 0.11.5-alpha.25619.109
    Microsoft.NET.Sdk , Microsoft.NET.Workload.Emscripten.Current.Manifest-11.0.100-alpha.1 From Version 11.0.100-alpha.1.25614.102 -> To Version 11.0.100-alpha.1.25619.109
    Microsoft.TemplateEngine.Authoring.Tasks From Version 11.0.100-alpha.25614.102 -> To Version 11.0.100-alpha.25619.109
Changed the PREPARE_NET_FX variable from net9.0 to net10.0 to target the newer .NET framework version in the build process.
Added PackageDownload entries for Microsoft.NET.Workload.Mono.ToolChain.net10 and Microsoft.NET.Workload.Emscripten.net10 to support .NET 10 workloads in the package-download.proj file.
Eliminated PackageDownload entries for net6, net7, net8, and net9 Mono and Emscripten manifests from package-download.proj, retaining only the current and net10 versions. This streamlines the package list and focuses on supported manifest versions.
Commented out PackageDownload entries for Mono and Emscripten .net10 manifests that do not exist yet, adding TODO notes for future reference.
@jonathanpeppers

This comment was marked as outdated.

dotnet-maestro bot and others added 16 commits January 7, 2026 09:38
…105.14

On relative base path root
Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-11.0.100-alpha.1 , Microsoft.NET.ILLink , Microsoft.NETCore.App.Ref From Version 11.0.0-alpha.1.25619.109 -> To Version 11.0.0-alpha.1.26055.114
Microsoft.DotNet.Build.Tasks.Feed From Version 11.0.0-beta.25619.109 -> To Version 11.0.0-beta.26055.114
Microsoft.DotNet.Cecil From Version 0.11.5-alpha.25619.109 -> To Version 0.11.5-alpha.26055.114
Microsoft.NET.Sdk , Microsoft.NET.Workload.Emscripten.Current.Manifest-11.0.100-alpha.1 From Version 11.0.100-alpha.1.25619.109 -> To Version 11.0.100-alpha.1.26055.114
Microsoft.TemplateEngine.Authoring.Tasks From Version 11.0.100-alpha.25619.109 -> To Version 11.0.100-alpha.26055.114
…110.2

On relative base path root
Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-11.0.100-alpha.1 , Microsoft.NET.ILLink , Microsoft.NETCore.App.Ref From Version 11.0.0-alpha.1.26055.114 -> To Version 11.0.0-alpha.1.26060.102
Microsoft.DotNet.Build.Tasks.Feed From Version 11.0.0-beta.26055.114 -> To Version 11.0.0-beta.26060.102
Microsoft.DotNet.Cecil From Version 0.11.5-alpha.26055.114 -> To Version 0.11.5-alpha.26060.102
Microsoft.NET.Sdk , Microsoft.NET.Workload.Emscripten.Current.Manifest-11.0.100-alpha.1 From Version 11.0.100-alpha.1.26055.114 -> To Version 11.0.100-alpha.1.26060.102
Microsoft.TemplateEngine.Authoring.Tasks From Version 11.0.100-alpha.26055.114 -> To Version 11.0.100-alpha.26060.102
Updated WorkloadManifest.in.json to include 'microsoft-net-runtime-android-net10' and 'microsoft-net-runtime-android-aot-net10' in the 'extends' section, enabling support for .NET 10 Android runtimes.
Bump Microsoft.NET.Sdk.Android.Manifest from 9.0.100 (35.0.105) to 10.0.100 (36.1.2) in Version.Details.xml and Versions.props. This updates the previous Android version references to the latest available.
Updated the KnownFrameworkReference item group for Android to include Microsoft.Android.Runtimes alongside Microsoft.Android for TargetFrameworkVersion 10.0.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review January 13, 2026 18:04
@jonathanpeppers
Copy link
Member Author

This one will fail temporarily, until they target net11.0 as well:

image

@jonathanpeppers jonathanpeppers merged commit a2c2045 into main Jan 13, 2026
1 of 2 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/net11.0 branch January 13, 2026 19:49
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.

3 participants