From f3a270cc5b8b4cddd2a1643c8a0e6d7d164e40e5 Mon Sep 17 00:00:00 2001 From: Lucas Falslev Date: Wed, 18 Mar 2026 08:59:30 -0600 Subject: [PATCH] fix AntiXssLibrary missing dependency --- RPCTest/RPCTest.csproj | 2 ++ src/CommonLib/SharpHoundCommonLib.csproj | 2 +- test/unit/CommonLibTest.csproj | 4 ++-- test/unit/RegistryProcessorTests.cs | 4 ++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/RPCTest/RPCTest.csproj b/RPCTest/RPCTest.csproj index 8638c026..44f41f8b 100644 --- a/RPCTest/RPCTest.csproj +++ b/RPCTest/RPCTest.csproj @@ -5,6 +5,8 @@ latest enable enable + + $(NoWarn);NU1702 diff --git a/src/CommonLib/SharpHoundCommonLib.csproj b/src/CommonLib/SharpHoundCommonLib.csproj index 3e973d87..82085698 100644 --- a/src/CommonLib/SharpHoundCommonLib.csproj +++ b/src/CommonLib/SharpHoundCommonLib.csproj @@ -18,7 +18,7 @@ full - + diff --git a/test/unit/CommonLibTest.csproj b/test/unit/CommonLibTest.csproj index df2ac725..8910d6da 100644 --- a/test/unit/CommonLibTest.csproj +++ b/test/unit/CommonLibTest.csproj @@ -6,8 +6,8 @@ true ..\..\docfx\coverage\ OpenCover - - $(NoWarn);NU1702 + + $(NoWarn);NU1702;NU1701 diff --git a/test/unit/RegistryProcessorTests.cs b/test/unit/RegistryProcessorTests.cs index f86b05fc..0edfe86f 100644 --- a/test/unit/RegistryProcessorTests.cs +++ b/test/unit/RegistryProcessorTests.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Runtime.Versioning; using System.Threading.Tasks; using CommonLibTest.Facades; using Microsoft.Extensions.Logging; @@ -74,6 +75,7 @@ public async Task RegistryProcessor_ReadRegistrySettings_CollectionFailed() { } } + [SupportedOSPlatform("windows")] [WindowsOnlyFact] public async Task RegistryProcessor_ReadRegistrySettings_FirstStrategySuccessful() { const uint minClientSecValue = 536870912; @@ -106,6 +108,7 @@ public async Task RegistryProcessor_ReadRegistrySettings_FirstStrategySuccessful VerifyCompStatusLog(task, TargetName, CSVComputerStatus.StatusSuccess); } + [SupportedOSPlatform("windows")] [WindowsOnlyFact] public async Task RegistryProcessor_ReadRegistrySettings_SecondStrategySuccessful() { const string failureReason = "No such host is known."; @@ -166,6 +169,7 @@ public async Task RegistryProcessor_ReadRegistrySettings_HandlesException() { Assert.Empty(_receivedCompStatuses); } + [SupportedOSPlatform("windows")] [WindowsOnlyFact] public async Task RegistryProcessor_ReadRegistrySettings_SetsAllValues() { var allowedServers = new[] {"server"};