From 76b9d9da9b14161114d6e514db71f8596aa56083 Mon Sep 17 00:00:00 2001 From: David Maas Date: Tue, 6 Aug 2024 19:13:36 -0500 Subject: [PATCH] Fix Bonsai.Editor.Tests targeting `net8.0` without `-windows` Also made this NuGet warning associated with this mistake into an error. Relates to https://github.com/bonsai-rx/bonsai/issues/1948 and https://github.com/bonsai-rx/bonsai/pull/1952 --- Bonsai.Editor.Tests/Bonsai.Editor.Tests.csproj | 2 +- tooling/Common.csproj.props | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Bonsai.Editor.Tests/Bonsai.Editor.Tests.csproj b/Bonsai.Editor.Tests/Bonsai.Editor.Tests.csproj index 05ae9f89a..3af5fed90 100644 --- a/Bonsai.Editor.Tests/Bonsai.Editor.Tests.csproj +++ b/Bonsai.Editor.Tests/Bonsai.Editor.Tests.csproj @@ -2,7 +2,7 @@ false false - net472;net8.0 + net472;net8.0-windows diff --git a/tooling/Common.csproj.props b/tooling/Common.csproj.props index 7177608da..81d84f58c 100644 --- a/tooling/Common.csproj.props +++ b/tooling/Common.csproj.props @@ -24,6 +24,9 @@ $(NoWarn);NU5125;NU5048 + + $(WarningsAsErrors);NU1701 + false true