Repository navigation
Move to the .NET 11 SDK and net11.0 - #3
Open
BenjaminMichaelis wants to merge 9 commits into
Open
BenjaminMichaelis wants to merge 9 commits into
BenjaminMichaelis wants to merge 9 commits into
Conversation
- global.json: SDK/tools 11.0.100 - dotnet-interactive tool and the libraries it loads multi-target net10.0;net11.0 so the tool still runs where only the .NET 10 runtime is installed - tests, samples, interface-generator and perf-tests target net11.0 - PackageRestoreContext restores for the TFM the assembly was built for - CSharpProjectKernel derives its language version from Roslyn - Microsoft.Data.Sqlite 11.0.0 - CI: install the .NET 10 runtime next to the global.json SDK and smoke-test the net10.0 tool build - add a C# 15 union types kernel test
- Journey: pack the net10.0 extension dll explicitly; OutputPath has no TFM folder in the multi-targeted pack - ExtensionLab: Microsoft.Diagnostics.Runtime 4.2.751201 (2.2 rejects the .NET 11 debugging layer), with Azure.Core 1.53.0 and Azure.Identity 1.21.0 as ClrMD requires; use CreateSnapshotAndAttach and GetMethodByHandle for the changed ClrMD API
… the process, and dispose the snapshot
…nstead of a fixed timeout, and gate on build success
…and Azure.Identity with TFM-conditional versions
…p upgrades; remove dual-targeting support
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.
Moves the repo to the .NET 11 SDK (11.0.100) and
net11.0, as a single-target upgrade in the same shape as the earlier ones in dotnet/interactive: 3e595984 (.NET 7 to 8), 1c35640c (8 to 9) and #4093 (9 to 10, 33ded6f5). Each of those swapped the tool from netN to netN+1 and the libraries fromnetstandard2.0;netN.0tonetstandard2.0;netN+1.0, moving users up one version in one step. Nothing in the repo history ships two .NET versions side by side, so this PR doesn't either.Breaking change: the tool now requires the .NET 11 runtime
Microsoft.dotnet-interactivecontains onlytools/net11.0/any. Machines with only the .NET 10 runtime or SDK cannot install or run it; they must stay on the previous tool version (or install .NET 11). The VS Code extensions now require the .NET 11 SDK (minDotNetSdkVersion = '11.0').Target frameworks
dotnet-interactivenet11.0net10.0net11.0netstandard2.0;net10.0netstandard2.0;net11.0netstandard2.0librariesSampleConsoletest project,samples/*net11.0(NetFramework.Testsstaysnet472)Pack layout, checked from a local
dotnet packof the whole solution: the tool nupkg has onlytools/net11.0/any; library nupkgs havelib/net11.0(pluslib/netstandard2.0for Microsoft.DotNet.Interactive and Browser); the netstandard2.0-only packages are unchanged.Other changes
global.json:sdk.versionandtools.dotnetare 11.0.100 (rollForward unchanged).Microsoft.Data.Sqlite10.0.0 to 11.0.0 (brings SQLitePCLRaw 3.0.5; the repo has no direct SQLitePCLRaw references);Azure.Core1.50.0 to 1.53.0 andAzure.Identity1.17.1 to 1.21.0;Microsoft.Diagnostics.Runtime2.2.343001 to 4.2.751201 (2.x and 3.x throw "CLR debugging layer reported a version of 10" on the .NET 11 runtime).DataTarget.CreateSnapshotAndAttach). Because a snapshot is point-in-time, the decompiler JIT-compiles all target methods first, then takes a fresh snapshot and disposes it afterwards (the pooled runtime was removed); if no snapshot can be created the tab says so. NewJitAsmDecompilerTestsassert real instructions and no "Failed to find HotColdRegions" / "Unknown Method" (they failed on the earlier approach). They pass on both Windows and Ubuntu CI.CSharpProjectKernelderives its language version from Roslyn (was a stale"13.0", now15.0).PackageRestoreContextrestores fornet11.0.KernelExtensionTestHelper,StdIoKernelConnectorTests) use net11.0 / 11.0.100. New test: C# 15uniontypes in the C# kernel.actions/setup-dotnetis unchanged (global-json-fileinstalls the 11.0.100 SDK, which is all that is needed).publish.ymluses11.0.xfor the NuGet push job, which has no checkout and so noglobal.json..devcontainernow usesmcr.microsoft.com/devcontainers/dotnet:11.0(the tag exists and carries SDK 11.0.100);DEVELOPER-GUIDE.md,eng/AfterSolutionBuild.targets(symbol-package strip paths), the VS CodeDotNetVersion.mdhelp pages and READMEs, anddocs/NotebookswithJupyter.md(which still said .NET 9) updated for .NET 11.eng/perf-tests/perf-tests.csprojandBasicConsoleApp.csprojso their diffs are the one-line TFM change.Consumer-facing notes
net10.0still load in the net11 tool: I packed anet10.0library, referenced it with#r "nuget:"from the locally installed net11 tool, and used it (NuGet resolves thelib/net10.0asset fornet11.0). Extensions built only fornet11.0need the net11 host, which is now the only host.lib/net10.0; net10 projects referencing the new versions would not restore them.Breaking-change checklist
NamedPipeKernelConnectoruses a different constructor and isnetstandard2.0).NuspecFilewithPackAsTool); pack of the tool is clean.Heartbeat/Shellare plainIHostedService).Verification
DisableArcade=1: full-solution restore and build,dotnet packof the whole solution (package layouts above), and tests for ExtensionLab (18 passed, 1 skipped), CSharp, SQLite, SqlServer (build; most need a server), Journey, dotnet-interactive.Tests, ApiCompatibility; all passed.dotnet tool install --tool-pathand driven over stdio:Environment.Version.Majorreturned 11, and#r "nuget: Newtonsoft.Json, 13.0.3"restored and was used.build (windows-latest)succeeded.build (ubuntu-latest)failed only on the knownMultipleInputsWithinMagicCommandsTestshang (all 5 retry attempts), plus a one-offPrebuildTests.If_a_build_is_in_flight_then_the_second_one_will_wait_on_it_to_completefailure on its first attempt that passed on retry. That run was re-run once (--failed); see the PR checks for the result. The previous two-target design of this PR had passed CI on both OSes (run 44378422597), including the ExtensionLab/JIT asm tests on Ubuntu.eng/CIBuild) is exercised by the CI jobs; I did not run Arcade locally.Left alone on purpose (follow-ups)
#r nugetlines of the SQL Server kernel). EF Core 11.0.0 exists, but its SqlServer provider requiresMicrosoft.Data.SqlClient7.1.1, which this repo deliberately holds at 6.1.3 (7.x moves Entra ID auth to a separate package), and the scaffolding path inConnectMsSqlDirectivecan't be exercised without a SQL Server. It should be done together with a SqlClient 7 change.Microsoft.Extensions.Hosting,Microsoft.AspNetCore.SignalR.Client,Microsoft.AspNetCore.Mvc.Testing(all 10.0.0; 11.0.0 exists),System.Drawing.Common/System.Security.Cryptography.*/System.Runtime.Caching(10.0.0, PowerShell SDK transitive pins),FSharp.Core10.0.103 andFSharp.Compiler.Service43.10.103 (11.0.101 exists but is paired with the F# compiler),Microsoft.PowerShell.SDK7.5.4 (7.7.0 exists). The10.0.10floors (System.Text.Json,System.Collections.Immutable,System.Reflection.Metadata,System.IO.Pipelines,Microsoft.Bcl.AsyncInterfaces,Microsoft.Extensions.Logging.Abstractions) come from the Roslyn 5.12 PR and still serve thenetstandard2.0targets.NOTICE.txt(shipped in the tool) is generated by Component Governance tooling that is not in this repo and was last refreshed in January: it still lists Microsoft.Data.Sqlite 10.0.0, Azure.Core 1.50.0, Azure.Identity 1.17.1, SQLitePCLRaw 2.1.11 and has no Microsoft.Diagnostics.Runtime entry. Regenerate it; not hand-edited.azure-pipelines*.yml,tools.dotnetbootstrap download) were not run.MultipleInputsWithinMagicCommandsTests(PowerShell kernel, JSON binding) can hang for 10 minutes per attempt, mostly on Ubuntu; the retry runner usually recovers it andmain's scheduled run has hit the same hang.PrebuildTests.If_a_build_is_in_flight_then_the_second_one_will_wait_on_it_to_completealso failed once and passed on retry; it is a possible second flake.#!inspecton Linux pays that cost."13.0") are untouched.NU1510warnings (Microsoft.Extensions.Logging.Abstractions,System.ComponentModel.Annotationsin CSharpProject) appear with SDK 11 pruning; the explicit references could be removed separately.Commits
PackageRestoreContext#if, Journey pack path, samples, VS Code and docs updates)(Intermediate commits 465db40 and 1549fbe added a net10 smoke test and TFM-conditional package versions; both are removed again by 7052563.)
Recreated on 2026-11-21 after the repo was re-forked from dotnet/interactive (was dotnet#13). Links to Actions runs from before that date no longer resolve; CI will re-run on this PR.