Skip to content

Migrate harness and examples to .NET 10 while preserving library compatibility - #64

Merged
sridhar madhugiri (msft) (sridmad) merged 5 commits into
microsoft:mainfrom
sridmad:user/sridmad/agent/net10-migration
Nov 18, 2026
Merged

sridhar madhugiri (msft) (sridmad) merged 5 commits into
microsoft:mainfrom
sridmad:user/sridmad/agent/net10-migration

Conversation

@sridmad

@sridmad sridhar madhugiri (msft) (sridmad) commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Move GuanTest and GuanExamples to .NET 10, pinned to SDK 10.0.404.
  • Preserve the library's netstandard2.0 target and Guan 1.0.0.0 assembly identity.
  • Update System.Text.Json from 8.0.5 to supported 10.0.15.
  • Generate NuGet dependency metadata from the project, replacing the separately maintained nuspec and nuget.exe download.
  • Add Windows/Linux CI that executes the actual console harness and custom-predicate examples. Build/package scripts propagate native failures.

Validation

  • Unchanged baseline: 2fb975f.
  • Unchanged solution build, actual p1.test console harness, and custom-predicate examples passed using an isolated .NET 8.0.34 runtime.
  • Migrated solution build, actual harness, examples, library publish, and package creation passed on Windows x64/.NET 10.0.15.
  • All 24 named harness queries and 20 verification blocks match the baseline; no test failures were suppressed.
  • A temporary 1.0.8-local package restored and built FabricHealer's host, proxy, telemetry, tests, and current sample.
  • FabricHealer executed two passing old/new plugin load/initialize/register/evaluate cases using the local Guan package, with TRX evidence.
  • Generated package contains lib/netstandard2.0/Guan.dll and the correct System.Text.Json dependency.
  • GitHub Actions executes and passes the actual harness/examples/package jobs on both windows-latest and ubuntu-latest.

Dependency ordering

Guan is the first part of the linked FabricHealer migration. FabricHealer retains its published Microsoft.Logic.Guan 1.0.7 restore default and uses an MSBuild override only for temporary local-feed integration.

No machine-specific feed, unpublished consumer dependency, package publication, or release publication is included. Publishing a Guan package requires separate approval.

FabricHealer follow-on: microsoft/service-fabric-healer#206

Fixes #65

Review follow-up

Oleg Sych's SDK roll-forward, package-version alignment, and documentation feedback is tracked in #67.

Preserve netstandard2.0 and assembly identity, update JSON dependencies, and generate packages and CI from the SDK projects.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep normal consumer restore available while the updated package awaits publication approval.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Both build scripts resolve the SDK from the caller’s directory and write Debug outputs into Release directories, risking incorrect SDK selection and overwritten Release artifacts.

4 open issues
What changed in this PR

Migrates Guan’s console harness and examples to .NET 10 while preserving the library’s netstandard2.0 target and Guan, Version=1.0.0.0 assembly identity.

Changes:

  • Pins SDK 10.0.404 and updates System.Text.Json to 10.0.15.
  • Replaces nuspec-based packaging with SDK-generated metadata and adds native failure checks to scripts.
  • Adds Windows/Ubuntu validation for the console harness, examples, and packaging, with updated documentation.
File Description
Test-Guan.ps1 Builds the solution and runs console test scripts and examples.
README.md Documents SDK requirements, compatibility, testing, and packaging.
GuanTest/​GuanTest.csproj Retargets the console harness to .NET 10.
guannuget.md Explains library compatibility and SDK-based packaging.
GuanExamples/​GuanExamples.csproj Retargets the examples to .NET 10.
Guan/​Guan.csproj Adds package metadata, preserves assembly identity, and updates System.Text.Json.
Guan.nuspec.template Removes the separately maintained package specification.
global.json Pins SDK 10.0.404 with patch roll-forward.
GettingStarted.md Updates framework and published-package guidance.
Build-NugetPackage.ps1 Uses dotnet pack, supports version overrides, and checks failures.
Build-Guan.ps1 Parameterizes publishing and checks native failures.
.github/​workflows/​build.yml Adds Windows/Ubuntu validation, packaging, and artifact uploads.

Review effort: Max

Comment thread Build-Guan.ps1 Resolved
Comment thread Build-Guan.ps1 Resolved
Comment thread Build-NugetPackage.ps1 Resolved
Comment thread Build-NugetPackage.ps1 Resolved
Run publish and pack from the repository with finally location restoration. Preserve lowercase Release output paths, separate Debug artifacts, and add cross-directory SDK/output regression checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Handle multiple executable matches on Unix PATH while preserving the normal command-resolution order.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Multi-segment Join-Path calls require PowerShell 6+, causing parameter-binding errors that block publishing under Windows PowerShell 5.1.

1 open issue
4 resolved since last review

Review effort: Max

Comment thread Build-Guan.ps1 Resolved
@sridmad

Copy link
Copy Markdown
Member Author

Workflow-only SHA pinning after this migration is tracked in #66. The separate follow-up must be completed before December 4 enforcement.

Use Path.Combine overloads supported by .NET Framework and add Windows PowerShell 5.1 CI coverage for SDK/configuration isolation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@olegsych Oleg Sych (olegsych) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a lot of new content that looks agent-generated and redundant, particularly documentation because it repeats information already available elsewhere or point-in-time information that may become obsolete quickly. It would be nice to boil it down.

Comment thread global.json
{
"sdk": {
"version": "10.0.404",
"rollForward": "latestPatch",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend setting rollForward to latestFeature or latestMinor so that we don't have to worry about updating this file again when 10.0.5xx or later .NET SDK versions are released.

Comment thread GettingStarted.md
``` XML
<ItemGroup>
<PackageReference Include="Microsoft.Logic.Guan" Version="1.0.3" />
<PackageReference Include="Microsoft.Logic.Guan" Version="1.0.7" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 1.0.8 now?

Comment thread guannuget.md

The library targets .NET Standard 2.0 and uses the supported System.Text.Json 10
dependency line. The repository's test harness and examples require .NET 10.
The package is built using `dotnet pack`, which generates dependency metadata

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this relevant to the package users?

@sridmad

Copy link
Copy Markdown
Member Author

Captured all feedback from the approval review in follow-up issue #67: #67 . This includes SDK roll-forward, the 1.0.8 release/example alignment, and reducing redundant/package-irrelevant documentation. No code changes or thread resolutions were made.

@sridmad
sridhar madhugiri (msft) (sridmad) merged commit e41529f into microsoft:main Nov 18, 2026
3 checks passed
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.

Migrate Guan harness and examples to .NET 10 while preserving netstandard2.0 compatibility

3 participants