diff --git a/Directory.Build.props b/Directory.Build.props index b4f19f7..9b12fb0 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,8 +1,8 @@ - 13 - net9.0 + 12 + net8.0 true enable true diff --git a/ManagedCode.Communication.Tests/ManagedCode.Communication.Tests.csproj b/ManagedCode.Communication.Tests/ManagedCode.Communication.Tests.csproj index 1c6be78..c8fbc4f 100644 --- a/ManagedCode.Communication.Tests/ManagedCode.Communication.Tests.csproj +++ b/ManagedCode.Communication.Tests/ManagedCode.Communication.Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net8.0 false Library false @@ -23,15 +23,15 @@ - + - + - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/ManagedCode.Communication.Tests/Orleans/OrleansSerializationTests.cs b/ManagedCode.Communication.Tests/Orleans/OrleansSerializationTests.cs index 78275ac..3d42ca3 100644 --- a/ManagedCode.Communication.Tests/Orleans/OrleansSerializationTests.cs +++ b/ManagedCode.Communication.Tests/Orleans/OrleansSerializationTests.cs @@ -31,7 +31,7 @@ public async Task CompleteWorkflow_AllTypes_ShouldSerializeCorrectly() var grain = _grainFactory.GetGrain(Guid.NewGuid()); // Step 1: Send a command - var commandId = Guid.CreateVersion7(); + var commandId = Guid.NewGuid(); var paymentRequest = new PaymentRequest { OrderId = "order-999", diff --git a/ManagedCode.Communication.Tests/Orleans/Serialization/CommandSerializationTests.cs b/ManagedCode.Communication.Tests/Orleans/Serialization/CommandSerializationTests.cs index 382fc81..c22ccf0 100644 --- a/ManagedCode.Communication.Tests/Orleans/Serialization/CommandSerializationTests.cs +++ b/ManagedCode.Communication.Tests/Orleans/Serialization/CommandSerializationTests.cs @@ -153,7 +153,7 @@ public async Task CommandT_WithComplexPayload_ShouldSerializeCorrectly() } }; - var command = Command.From(Guid.CreateVersion7(), payload); + var command = Command.From(Guid.NewGuid(), payload); command.CommandType = "ProcessPayment"; command.CorrelationId = "correlation-789"; command.CausationId = "causation-012"; diff --git a/ManagedCode.Communication/Commands/Command.cs b/ManagedCode.Communication/Commands/Command.cs index b1dc1e7..63d0340 100644 --- a/ManagedCode.Communication/Commands/Command.cs +++ b/ManagedCode.Communication/Commands/Command.cs @@ -73,7 +73,7 @@ protected Command(Guid commandId, string commandType) /// public static Command Create(string commandType) { - return new Command(Guid.CreateVersion7(), commandType); + return new Command(Guid.NewGuid(), commandType); } /// diff --git a/ManagedCode.Communication/Commands/CommandT.From.cs b/ManagedCode.Communication/Commands/CommandT.From.cs index 744778e..35c4605 100644 --- a/ManagedCode.Communication/Commands/CommandT.From.cs +++ b/ManagedCode.Communication/Commands/CommandT.From.cs @@ -6,7 +6,7 @@ public partial class Command { public static Command Create(T value) { - return new Command(Guid.CreateVersion7(), value); + return new Command(Guid.NewGuid(), value); } public static Command Create(Guid id, T value) diff --git a/ManagedCode.Communication/ManagedCode.Communication.csproj b/ManagedCode.Communication/ManagedCode.Communication.csproj index 6bd43d4..11e7c77 100644 --- a/ManagedCode.Communication/ManagedCode.Communication.csproj +++ b/ManagedCode.Communication/ManagedCode.Communication.csproj @@ -13,8 +13,8 @@ managedcode, Communication, Result - - + +