From df7016194da9ccf878f6a64696d38b9fad5488ab Mon Sep 17 00:00:00 2001
From: Flash0ver <38893694+Flash0ver@users.noreply.github.com>
Date: Tue, 14 Nov 2023 21:12:39 +0100
Subject: [PATCH] build: update NUKE
---
.config/dotnet-tools.json | 2 +-
build.sh | 2 +-
src/build/FlashOWare.Tool.Build/Build.cs | 5 +++++
src/build/FlashOWare.Tool.Build/FlashOWare.Tool.Build.csproj | 5 +++--
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index f97e966..b5c9263 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"nuke.globaltool": {
- "version": "7.0.2",
+ "version": "7.0.6",
"commands": [
"nuke"
]
diff --git a/build.sh b/build.sh
index 433c8ad..4f5a01c 100755
--- a/build.sh
+++ b/build.sh
@@ -58,7 +58,7 @@ fi
echo "Microsoft (R) .NET SDK version $("$DOTNET_EXE" --version)"
-if [[ ! -z ${NUKE_ENTERPRISE_TOKEN+x} && "NUKE_ENTERPRISE_TOKEN" != "" ]]; then
+if [[ ! -z ${NUKE_ENTERPRISE_TOKEN+x} && "$NUKE_ENTERPRISE_TOKEN" != "" ]]; then
"$DOTNET_EXE" nuget remove source "nuke-enterprise" &>/dev/null || true
"$DOTNET_EXE" nuget add source "https://f.feedz.io/nuke/enterprise/nuget" --name "nuke-enterprise" --username "PAT" --password "$NUKE_ENTERPRISE_TOKEN" --store-password-in-clear-text &>/dev/null || true
fi
diff --git a/src/build/FlashOWare.Tool.Build/Build.cs b/src/build/FlashOWare.Tool.Build/Build.cs
index b87e342..15d87ad 100644
--- a/src/build/FlashOWare.Tool.Build/Build.cs
+++ b/src/build/FlashOWare.Tool.Build/Build.cs
@@ -1,12 +1,17 @@
using System;
using System.Linq;
using Nuke.Common;
+using Nuke.Common.CI;
using Nuke.Common.CI.GitHubActions;
+using Nuke.Common.Execution;
using Nuke.Common.Git;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
+using Nuke.Common.Utilities.Collections;
+using static Nuke.Common.EnvironmentInfo;
+using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.IO.PathConstruction;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
diff --git a/src/build/FlashOWare.Tool.Build/FlashOWare.Tool.Build.csproj b/src/build/FlashOWare.Tool.Build/FlashOWare.Tool.Build.csproj
index 263da4c..746b50c 100644
--- a/src/build/FlashOWare.Tool.Build/FlashOWare.Tool.Build.csproj
+++ b/src/build/FlashOWare.Tool.Build/FlashOWare.Tool.Build.csproj
@@ -4,14 +4,15 @@
Exe
net6.0
- CS0649;CS0169
+ CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006
..\..\..
..\..\..
1
+ false
-
+