From 5cbb01f9dcf0011910069f501c98de1f78c9b5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=BD=E7=AC=94wys?= <46271592+Skymly@users.noreply.github.com> Date: Sat, 18 Jul 2026 16:31:16 +0800 Subject: [PATCH] Consume 0.2.3-preview1 published packages --- Directory.Build.props | 4 ++-- Directory.Build.targets | 6 +++--- README.md | 14 +++++++++++--- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 05faa23..fc1ce12 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - - 0.2.2 + + 0.2.3-preview1 $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../DesignPatterns')) true diff --git a/Directory.Build.targets b/Directory.Build.targets index 6233167..d2ab79e 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -56,16 +56,16 @@ - + - + - + diff --git a/README.md b/README.md index 72ee612..c2c73a2 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Runnable console applications for **[Skymly/DesignPatterns](https://github.com/S ## Clone layout -Samples default to a **local sibling** of the generator repo (no NuGet publish required yet): +Samples default to a **local sibling** of the generator repo for development: ``` / @@ -58,9 +58,17 @@ Equivalent: `dotnet run --project build/_build.csproj -- --root . --target Ci -- | **DesignPatterns.Samples.State** | Manual `TransitionTableBuilder` + `[StateMachine]` / `[Transition]` order lifecycle; guard predicates; entry/exit actions; `IStateMachine` wrapper; `TransitionTrace` | | **DesignPatterns.Samples.PluginAssemblies** | Multi-assembly `[RegisterStrategy]` + `RegisterAutofac` + `RegistryConfiguration` (AppSettings; see nested [README](DesignPatterns.Samples.PluginAssemblies/README.md)) | -## Future NuGet consumption +## Published NuGet consumption -When `DesignPatterns` is published, set `-p:UseLocalDesignPatterns=false` and pin `DesignPatternsPackageVersion` in `Directory.Build.props`. +The published `0.2.3-preview1` package is pinned in `Directory.Build.props`. To run +the package-backed samples, set `UseLocalDesignPatterns=false`: + +```powershell +dotnet run --project build/_build.csproj -- --root . --target Ci --configuration Release --use-local-design-patterns false +``` + +The `PluginAssemblies` sample also uses the non-packable `AppSettings` extension +from the sibling repository and therefore remains sibling-layout-only. ## Related