Repository navigation
Migrate harness and examples to .NET 10 while preserving library compatibility - #64
Conversation
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>
There was a problem hiding this comment.
🟡 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
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>
|
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>
Oleg Sych (olegsych)
left a comment
There was a problem hiding this comment.
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.
| { | ||
| "sdk": { | ||
| "version": "10.0.404", | ||
| "rollForward": "latestPatch", |
There was a problem hiding this comment.
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.
| ``` XML | ||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Logic.Guan" Version="1.0.3" /> | ||
| <PackageReference Include="Microsoft.Logic.Guan" Version="1.0.7" /> |
There was a problem hiding this comment.
Should this be 1.0.8 now?
|
|
||
| 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 |
There was a problem hiding this comment.
Is this relevant to the package users?
e41529f
into
microsoft:main

Changes
Validation
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.