From 7aa7758864a97760c91fe3cc05ebf193d83aa564 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 8 Oct 2026 06:47:40 -0400 Subject: [PATCH] build: scoped OTOPCUA0001 NoWarn in 13 test projects, error under src/, pin SDK via global.json (#595 #606) Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe --- Directory.Build.props | 24 ++++++++++++++----- global.json | 6 +++++ ...Ua.Driver.AbLegacy.IntegrationTests.csproj | 6 +++++ ...OM.WW.OtOpcUa.Driver.AbLegacy.Tests.csproj | 6 +++++ ...WW.OtOpcUa.Driver.Calculation.Tests.csproj | 6 +++++ ...OpcUa.Driver.FOCAS.IntegrationTests.csproj | 6 +++++ ...B.MOM.WW.OtOpcUa.Driver.FOCAS.Tests.csproj | 6 +++++ ....MOM.WW.OtOpcUa.Driver.Galaxy.Tests.csproj | 6 +++++ ...pcUa.Driver.Modbus.IntegrationTests.csproj | 6 +++++ ....MOM.WW.OtOpcUa.Driver.Modbus.Tests.csproj | 6 +++++ ...ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests.csproj | 6 +++++ ...Driver.OpcUaClient.IntegrationTests.csproj | 6 +++++ ...WW.OtOpcUa.Driver.OpcUaClient.Tests.csproj | 6 +++++ ...cUa.Driver.TwinCAT.IntegrationTests.csproj | 6 +++++ ...MOM.WW.OtOpcUa.Driver.TwinCAT.Tests.csproj | 6 +++++ 15 files changed, 102 insertions(+), 6 deletions(-) create mode 100644 global.json diff --git a/Directory.Build.props b/Directory.Build.props index a8f9a2ff..1b08fc60 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,12 +2,10 @@ net10.0 @@ -16,6 +14,20 @@ latest + + + <_OtRepoRoot>$([System.String]::Copy('$(MSBuildThisFileDirectory)').Replace('\','/')) + <_OtProjPath>$([System.String]::Copy('$(MSBuildProjectFullPath)').Replace('\','/')) + + + $(WarningsAsErrors);OTOPCUA0001 + + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests.csproj index a2b220f3..ae370b85 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Tests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests.csproj index b3cbfe8b..a8a03087 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.Calculation.Tests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests.csproj index a6ec89da..80d04ce6 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.FOCAS.IntegrationTests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests.csproj index 4a98f116..c4f4be54 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests.csproj index c8df6dcc..39628bce 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests.csproj index 67092175..fcfa9d58 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.Modbus.IntegrationTests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests.csproj index e4ff8cf9..980a367b 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.Modbus.Tests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests.csproj index d734cfed..4479ced1 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Tests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests.csproj index 1ea5b21d..34da9208 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests.csproj index 5f8839d5..a1f497e6 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests.csproj index a5dfdf3b..74f23c46 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.IntegrationTests + + + $(NoWarn);OTOPCUA0001 + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests.csproj b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests.csproj index 1f8f0313..fd7dacec 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests.csproj +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests.csproj @@ -9,6 +9,12 @@ ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests + + + $(NoWarn);OTOPCUA0001 + +