From 569eae966acea3e6da7b064a14ca5c1865ab1737 Mon Sep 17 00:00:00 2001 From: HavenDV Date: Sun, 28 Apr 2024 04:40:43 +0400 Subject: [PATCH] feat: Updated to net8. Released 1.0. --- src/apps/H.Ipc.Apps.Wpf/H.Ipc.Apps.Wpf.csproj | 2 +- src/libs/Directory.Build.props | 5 +---- src/libs/H.Ipc/H.Ipc.csproj | 2 +- .../H.Ipc.Generator.IntegrationTests.csproj | 2 +- .../H.Ipc.Generator.SnapshotTests.csproj | 3 ++- src/tests/H.Ipc.Generator.SnapshotTests/TestHelper.cs | 6 +++--- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/apps/H.Ipc.Apps.Wpf/H.Ipc.Apps.Wpf.csproj b/src/apps/H.Ipc.Apps.Wpf/H.Ipc.Apps.Wpf.csproj index 9e5797a..bb493a7 100644 --- a/src/apps/H.Ipc.Apps.Wpf/H.Ipc.Apps.Wpf.csproj +++ b/src/apps/H.Ipc.Apps.Wpf/H.Ipc.Apps.Wpf.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows;net4.8 + net8.0-windows;net4.8 true true diff --git a/src/libs/Directory.Build.props b/src/libs/Directory.Build.props index 36cf7a5..34cd8a0 100644 --- a/src/libs/Directory.Build.props +++ b/src/libs/Directory.Build.props @@ -16,6 +16,7 @@ + 1.0.0 true true havendv @@ -27,10 +28,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/src/libs/H.Ipc/H.Ipc.csproj b/src/libs/H.Ipc/H.Ipc.csproj index aac114b..8819ecb 100644 --- a/src/libs/H.Ipc/H.Ipc.csproj +++ b/src/libs/H.Ipc/H.Ipc.csproj @@ -1,7 +1,7 @@  - netstandard2.0;net4.6.2 + netstandard2.0;net4.6.2;net6.0;net8.0 H.Ipc.Core diff --git a/src/tests/H.Ipc.Generator.IntegrationTests/H.Ipc.Generator.IntegrationTests.csproj b/src/tests/H.Ipc.Generator.IntegrationTests/H.Ipc.Generator.IntegrationTests.csproj index 8e189f0..2fa98ed 100644 --- a/src/tests/H.Ipc.Generator.IntegrationTests/H.Ipc.Generator.IntegrationTests.csproj +++ b/src/tests/H.Ipc.Generator.IntegrationTests/H.Ipc.Generator.IntegrationTests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 diff --git a/src/tests/H.Ipc.Generator.SnapshotTests/H.Ipc.Generator.SnapshotTests.csproj b/src/tests/H.Ipc.Generator.SnapshotTests/H.Ipc.Generator.SnapshotTests.csproj index bdd00cb..e2caeea 100644 --- a/src/tests/H.Ipc.Generator.SnapshotTests/H.Ipc.Generator.SnapshotTests.csproj +++ b/src/tests/H.Ipc.Generator.SnapshotTests/H.Ipc.Generator.SnapshotTests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 @@ -9,6 +9,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/tests/H.Ipc.Generator.SnapshotTests/TestHelper.cs b/src/tests/H.Ipc.Generator.SnapshotTests/TestHelper.cs index 73134cc..4c501ae 100644 --- a/src/tests/H.Ipc.Generator.SnapshotTests/TestHelper.cs +++ b/src/tests/H.Ipc.Generator.SnapshotTests/TestHelper.cs @@ -1,4 +1,4 @@ -using System.Collections.Immutable; +using H.Generators.Tests.Extensions; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Testing; @@ -12,8 +12,8 @@ public static async Task CheckSourceAsync( string source, CancellationToken cancellationToken = default) { - var referenceAssemblies = ReferenceAssemblies.Net.Net60 - .WithPackages(ImmutableArray.Create(new PackageIdentity("H.Pipes.AccessControl", "2.0.47"))); + var referenceAssemblies = LatestReferenceAssemblies.Net80 + .WithPackages([new PackageIdentity("H.Pipes.AccessControl", "2.0.59")]); var references = await referenceAssemblies.ResolveAsync(null, cancellationToken); references = references .Add(MetadataReference.CreateFromFile(typeof(H.IpcGenerators.IpcClientAttribute).Assembly.Location));