diff --git a/.github/workflows/chapter-4-package-workflow.yml b/.github/workflows/chapter-4-package-workflow.yml
index 2b1a661c..4feaed25 100644
--- a/.github/workflows/chapter-4-package-workflow.yml
+++ b/.github/workflows/chapter-4-package-workflow.yml
@@ -13,7 +13,7 @@ on:
env:
CHAPTER_DIR: "Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common"
- NUGET_SOURCE_NAME: "evolutionaryArchitecture"
+ NUGET_SOURCE_NAME: "EvolutionaryArchitecture"
jobs:
build:
@@ -27,7 +27,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 9.0.x
+ dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
@@ -45,7 +45,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 9.0.x
+ dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Test
@@ -64,7 +64,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 9.0.x
+ dotnet-version: 10.0.x
- name: Pack Projects
run: |
@@ -74,13 +74,14 @@ jobs:
dotnet pack Fitnet.Common.IntegrationTestsToolbox/Fitnet.Common.IntegrationTestsToolbox.csproj -c Release
dotnet pack Fitnet.Common.UnitTesting/Fitnet.Common.UnitTesting.csproj -c Release
- - name: Add Evolutionary Architecture Nuget Source
- uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- owner: ${{ github.repository_owner }}
- path: ${{ env.CHAPTER_DIR }}
- nuget-source-name: ${{ env.NUGET_SOURCE_NAME }}
+ - name: Authenticate to GitHub Packages
+ run: |
+ dotnet nuget add source \
+ https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json \
+ --name ${{ env.NUGET_SOURCE_NAME }} \
+ --username ${{ github.actor }} \
+ --password ${{ secrets.GITHUB_TOKEN }} \
+ --store-password-in-clear-text
- name: Publish Packages
run: |
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Directory.Build.props b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Directory.Build.props
index 4e4b16a0..d2b7b621 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Directory.Build.props
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Directory.Build.props
@@ -3,7 +3,7 @@
EvolutionaryArchitecture.$(MSBuildProjectName)
$(AssemblyName)
- net9.0
+ net10.0
latest
true
true
@@ -12,7 +12,7 @@
true
true
https://github.com/evolutionary-architecture/evolutionary-architecture-by-example
- 4.1.7
+ 4.2.0
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Directory.Packages.props b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Directory.Packages.props
new file mode 100644
index 00000000..a04ce0a7
--- /dev/null
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Directory.Packages.props
@@ -0,0 +1,35 @@
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api.UnitTests/Fitnet.Common.Api.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api.UnitTests/Fitnet.Common.Api.UnitTests.csproj
index ef476753..ede13f6b 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api.UnitTests/Fitnet.Common.Api.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api.UnitTests/Fitnet.Common.Api.UnitTests.csproj
@@ -9,11 +9,10 @@
-
-
-
-
-
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api/Fitnet.Common.Api.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api/Fitnet.Common.Api.csproj
index 4bd6eaa4..c4954177 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api/Fitnet.Common.Api.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Api/Fitnet.Common.Api.csproj
@@ -1,11 +1,11 @@
-
+
-
+
@@ -13,11 +13,8 @@
-
-
-
-
-
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core.UnitTests/Fitnet.Common.Core.UnitTests.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core.UnitTests/Fitnet.Common.Core.UnitTests.csproj
index 741a9654..65b5be10 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core.UnitTests/Fitnet.Common.Core.UnitTests.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core.UnitTests/Fitnet.Common.Core.UnitTests.csproj
@@ -10,10 +10,10 @@
-
-
-
-
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/Fitnet.Common.Core.csproj b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/Fitnet.Common.Core.csproj
index e70f667e..2c00e36f 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/Fitnet.Common.Core.csproj
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/Fitnet.Common.Core.csproj
@@ -1,8 +1,8 @@
-
-
+
+
diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/ValueObject.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/ValueObject.cs
index 0a494757..fa4779a8 100644
--- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/ValueObject.cs
+++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Common/Fitnet.Common.Core/ValueObject.cs
@@ -1,6 +1,8 @@
namespace EvolutionaryArchitecture.Fitnet.Common.Core;
+#pragma warning disable S4035
public abstract class ValueObject : IEquatable
+#pragma warning restore S4035
{
protected abstract IEnumerable