From 614da76489a184ecc6a37804d26a8814632f6aa7 Mon Sep 17 00:00:00 2001 From: Ivan Murzak Date: Tue, 17 Nov 2026 01:48:36 -0800 Subject: [PATCH 1/3] feat: add net10.0 target framework to com.IvanMurzak.CodeExec CodeExec Core: netstandard2.0;net8.0 -> + net10.0 (collectible AssemblyLoadContext host, same as net8.0). The package gains lib/net10.0 and an empty net10.0 dependency group; netstandard2.0 and net8.0 are unchanged. CodeExec.Roslyn (source-only) and the samples are untouched. CI already installs 10.0.x and the tests already run on net8.0 and net10.0. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 2 +- README.md | 2 +- dotnet/CodeExec/CodeExec.csproj | 6 +++--- dotnet/PACKAGE.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0f89714..159f07f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,7 +6,7 @@ Unity, Godot, Unreal, MCP, ReflectorNet or any hosted service — hosts plug in ## Layout - `spec/contract.md` — normative request/response and snippet semantics. **The contract wins over any runtime.** - `fixtures/golden/` — shared cases (`csharp.json`, `python.json`); `fixtures/include/` — include trees they use. -- `dotnet/CodeExec/` — Core (`netstandard2.0` + `net8.0`), **no package dependencies**. +- `dotnet/CodeExec/` — Core (`netstandard2.0` + `net8.0` + `net10.0`), **no package dependencies**. - `dotnet/CodeExec.Roslyn/src/` — the Roslyn adapter, shipped as **source** (package `com.IvanMurzak.CodeExec.Roslyn`). - `dotnet/CodeExec.Tests/` — xUnit; compiles the adapter source like a consumer, against `-p:RoslynVersion=…`. - `dotnet/samples/PackageConsumer/` — consumes the packed packages with strict settings (nullable off, C# 9). diff --git a/README.md b/README.md index f4280b3..555caec 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ var runner = new CodeRunner(new RoslynCSharpCompiler(), new CodeRunnerOptions ExecuteResult result = await runner.ExecuteAsync(new ExecuteRequest { Code = "Application.unityVersion" }); ``` -`com.IvanMurzak.CodeExec` targets `netstandard2.0` (Unity / Mono, .NET Framework) and `net8.0`. +`com.IvanMurzak.CodeExec` targets `netstandard2.0` (Unity / Mono, .NET Framework) , `net8.0` and `net10.0`. `com.IvanMurzak.CodeExec.Roslyn` is source-only: it compiles inside your project against **your** `Microsoft.CodeAnalysis.CSharp`. diff --git a/dotnet/CodeExec/CodeExec.csproj b/dotnet/CodeExec/CodeExec.csproj index cfb8059..73e649a 100644 --- a/dotnet/CodeExec/CodeExec.csproj +++ b/dotnet/CodeExec/CodeExec.csproj @@ -3,11 +3,11 @@ Core of Code-Exec. Deliberately has NO package dependencies — Roslyn included. The compiler is plugged in through ICSharpCompiler, implemented by the source-only package com.IvanMurzak.CodeExec.Roslyn, which compiles inside the consumer against the consumer's own Microsoft.CodeAnalysis.CSharp. - netstandard2.0 serves Unity (Mono) and .NET Framework; net8.0 adds the collectible AssemblyLoadContext host. + netstandard2.0 serves Unity (Mono) and .NET Framework; net8.0 and net10.0 add the collectible AssemblyLoadContext host. --> - netstandard2.0;net8.0 - + netstandard2.0;net8.0;net10.0 + 9.0 com.IvanMurzak.CodeExec com.IvanMurzak.CodeExec diff --git a/dotnet/PACKAGE.md b/dotnet/PACKAGE.md index 58f18e3..da574d2 100644 --- a/dotnet/PACKAGE.md +++ b/dotnet/PACKAGE.md @@ -7,7 +7,7 @@ the snippet's own lines. Two packages: - **`com.IvanMurzak.CodeExec`** — the runtime. No dependencies. `netstandard2.0` (Unity / Mono, .NET Framework) and - `net8.0` (each run in its own collectible `AssemblyLoadContext`, unloaded afterwards). + `net8.0` / `net10.0` (each run in its own collectible `AssemblyLoadContext`, unloaded afterwards). - **`com.IvanMurzak.CodeExec.Roslyn`** — source-only: the compiler adapter compiles inside your project against **your** `Microsoft.CodeAnalysis.CSharp` (3.8 or newer). Add that package yourself. From 9d5f9fcff04eecbf4fd1282b43ea8c2783248567 Mon Sep 17 00:00:00 2001 From: Ivan Murzak Date: Tue, 17 Nov 2026 01:49:56 -0800 Subject: [PATCH 2/3] simplify: merge the net10 TFM conditions' comments, tidy target-framework wording Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- dotnet/CodeExec/CodeExec.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 555caec..6b36b51 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ var runner = new CodeRunner(new RoslynCSharpCompiler(), new CodeRunnerOptions ExecuteResult result = await runner.ExecuteAsync(new ExecuteRequest { Code = "Application.unityVersion" }); ``` -`com.IvanMurzak.CodeExec` targets `netstandard2.0` (Unity / Mono, .NET Framework) , `net8.0` and `net10.0`. +`com.IvanMurzak.CodeExec` targets `netstandard2.0` (Unity / Mono, .NET Framework), `net8.0` and `net10.0`. `com.IvanMurzak.CodeExec.Roslyn` is source-only: it compiles inside your project against **your** `Microsoft.CodeAnalysis.CSharp`. diff --git a/dotnet/CodeExec/CodeExec.csproj b/dotnet/CodeExec/CodeExec.csproj index 73e649a..bc2e62d 100644 --- a/dotnet/CodeExec/CodeExec.csproj +++ b/dotnet/CodeExec/CodeExec.csproj @@ -3,7 +3,7 @@ Core of Code-Exec. Deliberately has NO package dependencies — Roslyn included. The compiler is plugged in through ICSharpCompiler, implemented by the source-only package com.IvanMurzak.CodeExec.Roslyn, which compiles inside the consumer against the consumer's own Microsoft.CodeAnalysis.CSharp. - netstandard2.0 serves Unity (Mono) and .NET Framework; net8.0 and net10.0 add the collectible AssemblyLoadContext host. + netstandard2.0 serves Unity (Mono) and .NET Framework; net8.0+ adds the collectible AssemblyLoadContext host. --> netstandard2.0;net8.0;net10.0 From 8eefda9421f8732e7704cd2f5ec6d5e0a2f732d2 Mon Sep 17 00:00:00 2001 From: Ivan Murzak Date: Tue, 17 Nov 2026 01:52:33 -0800 Subject: [PATCH 3/3] code review: PackageConsumer runs on net8.0 and net10.0 so the packed lib/net10.0 is exercised Co-Authored-By: Claude Opus 5.5 --- dotnet/samples/PackageConsumer/PackageConsumer.csproj | 2 +- scripts/consume.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dotnet/samples/PackageConsumer/PackageConsumer.csproj b/dotnet/samples/PackageConsumer/PackageConsumer.csproj index 750ce8f..4412ffb 100644 --- a/dotnet/samples/PackageConsumer/PackageConsumer.csproj +++ b/dotnet/samples/PackageConsumer/PackageConsumer.csproj @@ -6,7 +6,7 @@ --> Exe - net8.0 + net8.0;net10.0 disable 9.0 disable diff --git a/scripts/consume.sh b/scripts/consume.sh index 7759c5b..007c1c8 100755 --- a/scripts/consume.sh +++ b/scripts/consume.sh @@ -1,10 +1,12 @@ #!/usr/bin/env bash # Builds and runs dotnet/samples/PackageConsumer against the packed packages in ./packages, once per Roslyn version -# given (default 4.8.0). Run scripts/pack.sh first. +# given (default 4.8.0) and per target framework (net8.0, net10.0: each consumes its own lib/). Run scripts/pack.sh first. set -euo pipefail root="$(cd "$(dirname "$0")/.." && pwd)" sample="$root/dotnet/samples/PackageConsumer" for v in "${@:-4.8.0}"; do rm -rf "$sample/obj" "$sample/bin" - dotnet run --project "$sample/PackageConsumer.csproj" -p:RoslynVersion="$v" + for tfm in net8.0 net10.0; do + dotnet run --project "$sample/PackageConsumer.csproj" -f "$tfm" -p:RoslynVersion="$v" + done done