diff --git a/build/Build.cs b/build/Build.cs index 7f4c5fd..ca3f8a6 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -15,14 +15,14 @@ using static Nuke.Common.Tools.DotNet.DotNetTasks; [ShutdownDotNetAfterServerBuild] [GitHubActions("ci", GitHubActionsImage.UbuntuLatest, + FetchDepth = 0, OnPullRequestBranches = new[] {"master", "releases/*"}, AutoGenerate = true, InvokedTargets = new[] {nameof(Ci)}, - CacheKeyFiles = new string[0], - FetchDepth = 0 - ) -] + CacheKeyFiles = new string[0] + )] [GitHubActions("ci_publish", GitHubActionsImage.UbuntuLatest, + FetchDepth = 0, OnPushBranches = new[] { "releases/*" }, OnPushTags = new[] { "v*" }, AutoGenerate = true, @@ -36,7 +36,7 @@ class Build : NukeBuild [GitRepository] readonly GitRepository GitRepository; - [GitVersion(Framework = "netcoreapp3.1")] readonly GitVersion GitVersion; + [GitVersion] readonly GitVersion GitVersion; [Solution] readonly Solution Solution; diff --git a/build/_build.csproj b/build/_build.csproj index e941599..5255a3c 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net5.0 CS0649;CS0169 .. @@ -10,8 +10,11 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + -