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