Skip to content

Update to .NET 11 Preview 4 - #146

Merged
jjonescz merged 30 commits into
mainfrom
net11p4
May 17, 2026
Merged

jjonescz merged 30 commits into
mainfrom
net11p4

Conversation

@jjonescz

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 15, 2026 14:42
@jjonescz jjonescz added the enhancement New feature or request label May 15, 2026

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

Updates the codebase for .NET 11 Preview 4 and related dependency/analyzer changes, while adjusting compiler, language service, NuGet, and disposal behavior needed by the newer toolchain.

Changes:

  • Bumps SDK, MSTest SDK, and central package versions for .NET 11 Preview 4.
  • Adds/updates disposal ownership handling across compiler, worker, app, and tests.
  • Improves script diagnostics/return-value behavior and NuGet.org redirected-source handling.

Reviewed changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated no comments.

Show a summary per file
File Description
global.json Updates .NET SDK/workload and MSTest SDK versions.
Directory.Packages.props Updates package versions and central package pins.
.globalconfig Raises disposable-related analyzer severities.
.vscode/tasks.json Adds a VS Code watch task.
src/App/App.cs Registers the new local storage service.
src/App/App.csproj Removes Blazored.LocalStorage dependency.
src/App/_Imports.razor Removes Blazored.LocalStorage import.
src/App/Utils/LocalStorageService.cs Adds an internal local storage abstraction/implementation.
src/App/Utils/LocalStorageUtil.cs Updates local storage helper imports.
src/App/Lab/Page.razor Disposes cursor synchronization and input lock resources.
src/App/Lab/LanguageServicesClient.cs Adds async disposal for Monaco providers and debounce CTS cleanup.
src/App/Lab/CursorSynchronizer.cs Tracks and disposes cursor subscriptions.
src/App/Lab/WorkerController.cs Disposes worker guard semaphore.
src/App/Lab/InputOutputCache.cs Disposes HTTP request/response resources.
src/App/Lab/CommitHashView.razor Disposes async lock resource.
src/Compiler/Compiler.csproj Adds C# scripting package reference.
src/Compiler/Compiler.cs Adds script return formatting and PE/PDB disposal ownership.
src/Compiler/LanguageServices.cs Makes language services disposable and updates script document handling.
src/Compiler/FileLevelDirectiveParser.cs Disposes tokenizer.
src/Compiler/RefAssemblyMetadata.cs Suppresses CA2000 where metadata ownership is transferred.
src/Shared/Executor.cs Supports formatted script return values and disposes renderer.
src/Shared/AsyncLock.cs Separates lock scope disposal from lock object disposal.
src/Shared/Util.cs Adds nullable ValueTask await helper and assembly path fallback.
src/Worker/Lab/CompilerProxy.cs Disposes superseded compiler load contexts and adjusts default assembly loading.
src/Worker/Lab/NuGetDownloader.cs Adds redirected NuGet.org source handling and source-failure fallbacks.
src/Worker/Lab/SdkDownloader.cs Disposes HTTP responses/requests.
src/WorkerApi/Utils/SimpleNuGetUtil.cs Tracks NuGet.org-compatible hosts.
src/Server/Properties/launchSettings.json Disables automatic browser launch.
test/UnitTests/LanguageServiceTests.cs Adds script rename diagnostics coverage and disposes test handler.
test/UnitTests/ExecutorTests.cs Adds script return output coverage and updates script stdout expectations.
test/UnitTests/CompilerProxyTests.cs Disposes mock HTTP handlers in tests.

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

Copilot AI review requested due to automatic review settings May 16, 2026 20:35

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

Copilot reviewed 32 out of 32 changed files in this pull request and generated 3 comments.

Comment thread src/Shared/Executor.cs Resolved
Comment thread src/Compiler/LanguageServices.cs Resolved
Comment thread src/App/Lab/LanguageServicesClient.cs Resolved
Copilot AI review requested due to automatic review settings May 17, 2026 08:39

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

Copilot reviewed 36 out of 36 changed files in this pull request and generated 3 comments.

Comment thread .globalconfig Resolved
Comment thread src/App/Lab/LanguageServicesClient.cs Resolved
Comment thread src/Compiler/Compiler.cs Resolved
Copilot AI review requested due to automatic review settings May 17, 2026 09:43

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

Copilot reviewed 38 out of 38 changed files in this pull request and generated 2 comments.

Comment thread src/App/Lab/LanguageServicesClient.cs Resolved
Comment thread src/Shared/Executor.cs Resolved
Copilot AI review requested due to automatic review settings May 17, 2026 13:37

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

Copilot reviewed 41 out of 41 changed files in this pull request and generated 2 comments.

Comment thread src/Compiler/Compiler.csproj Resolved
Comment thread src/Compiler/Compiler.cs Resolved
Copilot AI review requested due to automatic review settings May 17, 2026 14:31

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

Copilot reviewed 42 out of 42 changed files in this pull request and generated 1 comment.

Comment thread src/App/Lab/LanguageServicesClient.cs Resolved
@jjonescz
jjonescz merged commit 8e4742a into main May 17, 2026
9 checks passed
@jjonescz
jjonescz deleted the net11p4 branch May 17, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants