From ac7845f1f1d32121a3cab97e1ca51adada9fe21a Mon Sep 17 00:00:00 2001 From: Dirk Schreiber <94197537+dschreib42@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:33:17 +0100 Subject: [PATCH] DotNet7 (#8) * Extracted state machine configuration from state machine implementation. * Added check for initial state configured * Fixed resolving the given state * Call OnExit() callbacks on ResetAsync() * Marked termination nodes with second eclipse * Improved performance * Fixed graph * Extended graph generating options * Call OnExit() callbacks on Dispose * All graph options are enabled by default * Fixed initial reported state transition * Increased version no * Change logging and transitioning order * Renamed graph formatting option All to Default * Added dotnet7 support * Updated copyright * Added support for netstandard2.0 * Updated nuget packages --- .github/workflows/ci.yml | 2 +- README.md | 2 +- samples/BugTrackerExample/BugTrackerExample.csproj | 2 +- samples/ComplexExample/ComplexExample.csproj | 2 +- src/AsyncStateMachine/AsyncStateMachine.csproj | 10 +++++----- .../AsyncStateMachine.ComponentTests.csproj | 13 ++++++------- .../AsyncStateMachine.UnitTests.csproj | 11 +++++------ 7 files changed, 20 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d06e4ad..bca45aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.x' + dotnet-version: '7.x' include-prerelease: false - name: Restore dependencies diff --git a/README.md b/README.md index 0ec72ea..71c59d0 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ This string representation can then be rendered by tools that support the mermai ## Building -AsyncStateMachine runs on .NET and .NetCore platforms targeting .NET Standard 2.0 and .NET Standard2.1. Visual Studio 2022 or later is required to build the solution, because .NET 6.0 is the default. +AsyncStateMachine runs on .NET NetCore platforms targeting .NET 6.0 or 7.0. [Visual Studio 2022](https://visualstudio.microsoft.com/vs/) or [Visual Code](https://code.visualstudio.com/Download) is required to build the solution. ## Project Goals diff --git a/samples/BugTrackerExample/BugTrackerExample.csproj b/samples/BugTrackerExample/BugTrackerExample.csproj index 92195b6..cc5d8e1 100644 --- a/samples/BugTrackerExample/BugTrackerExample.csproj +++ b/samples/BugTrackerExample/BugTrackerExample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net7.0 enable diff --git a/samples/ComplexExample/ComplexExample.csproj b/samples/ComplexExample/ComplexExample.csproj index 4f8b80b..ca5e41e 100644 --- a/samples/ComplexExample/ComplexExample.csproj +++ b/samples/ComplexExample/ComplexExample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net7.0 enable enable diff --git a/src/AsyncStateMachine/AsyncStateMachine.csproj b/src/AsyncStateMachine/AsyncStateMachine.csproj index 78cfdf6..445e4db 100644 --- a/src/AsyncStateMachine/AsyncStateMachine.csproj +++ b/src/AsyncStateMachine/AsyncStateMachine.csproj @@ -1,7 +1,7 @@  - net6.0 + net6.0;net7.0;netstandard2.0 True AsyncStateMachine LICENSE @@ -12,10 +12,10 @@ https://github.com/dschreib42/AsyncStateMachine http://www.apache.org/licenses/LICENSE-2.0.html https://github.com/dschreib42/AsyncStateMachine - Copyright 2021 Dirk Schreiber + Copyright Dirk Schreiber 2021-$([System.DateTime]::Now.ToString(yyyy)) Dirk Schreiber A lightweight state machine framework for .Net/.NetCore - 1.3.1 + 1.3.2 state machine async false http://www.apache.org/licenses/LICENSE-2.0 @@ -34,8 +34,8 @@ - - + + \ No newline at end of file diff --git a/tests/AsyncStateMachine.ComponentTests/AsyncStateMachine.ComponentTests.csproj b/tests/AsyncStateMachine.ComponentTests/AsyncStateMachine.ComponentTests.csproj index 5a9dfd7..5593955 100644 --- a/tests/AsyncStateMachine.ComponentTests/AsyncStateMachine.ComponentTests.csproj +++ b/tests/AsyncStateMachine.ComponentTests/AsyncStateMachine.ComponentTests.csproj @@ -1,18 +1,18 @@ - net6.0 + net7.0 false - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -21,5 +21,4 @@ - - + \ No newline at end of file diff --git a/tests/AsyncStateMachine.UnitTests/AsyncStateMachine.UnitTests.csproj b/tests/AsyncStateMachine.UnitTests/AsyncStateMachine.UnitTests.csproj index 8c56294..a311a26 100644 --- a/tests/AsyncStateMachine.UnitTests/AsyncStateMachine.UnitTests.csproj +++ b/tests/AsyncStateMachine.UnitTests/AsyncStateMachine.UnitTests.csproj @@ -1,20 +1,20 @@  - net6.0 + net7.0 false - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -23,5 +23,4 @@ - - + \ No newline at end of file