Skip to content

Commit

Permalink
Update build configuration to support .NET 8.0 and adjust target fram…
Browse files Browse the repository at this point in the history
…eworks
  • Loading branch information
Megasware128 committed Oct 30, 2024
1 parent 00291e7 commit c625c4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using Nuke.Common;
using Nuke.Common.CI;
using Nuke.Common.CI.GitHubActions;
Expand Down Expand Up @@ -88,8 +89,9 @@ class Build : NukeBuild
DotNetTest(s => s
.SetProjectFile(Solution.test.Serilog_Enrichers_Demystifier_Tests)
.SetConfiguration(Configuration)
.When(IsServerBuild, ss => ss.SetFramework("net6.0"))
.When(IsServerBuild && EnvironmentInfo.IsWin, ss => ss.SetFramework("net4.8"))
.When(IsServerBuild && !EnvironmentInfo.IsArm64, ss => ss.SetFramework("net6.0"))
.When(IsServerBuild, ss => ss.SetFramework("net8.0"))
.When(IsServerBuild && EnvironmentInfo.IsWin, ss => ss.SetFramework("net4.8.1"))
.EnableNoBuild());
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net4.6.2;net4.8;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net4.6.2;net4.8.1;net6.0;net8.0</TargetFrameworks>
<AssemblyName>Serilog.Enrichers.Demystifier.Tests</AssemblyName>
<PackageId>Serilog.Enrichers.Demystifier.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand Down

0 comments on commit c625c4c

Please sign in to comment.