From 065bfc5784d1062ab26540c850ca292b8a04aa85 Mon Sep 17 00:00:00 2001 From: Sean Champ Date: Thu, 6 Feb 2020 02:50:41 -0800 Subject: src/**/*.csproj: Define CodeAnalysisRuleSet conditionally (#22) This patch may serve to work around a matter of the availability of the file `AllRules.ruleset`, such that may not exist under some MSBUild installations, This workaround, as such, may be applied in a manner as follows, namely in disabling the RunCodeAnalysis property when building NUnitLite under MSBuild. ~~~~ msbuild NUnitLite-1.0.0/src/framework/nunitlite-4.5.csproj /p:RunCodeAnalysis=false ~~~~ This may serve to prevent a number of warning messages, when building NUnitLite under MSBuild with some Mono installations. This patch provides, in effect, a conditional evaluation for the declaration of the CodeAnalysisRuleSet property in NUnitLite *.csproj files. --- NUnitLite-1.0.0/src/TestResultConsole/TestResultConsole.csproj | 4 ++-- NUnitLite-1.0.0/src/framework/nunitlite-2.0.csproj | 4 ++-- NUnitLite-1.0.0/src/framework/nunitlite-3.5.csproj | 4 ++-- NUnitLite-1.0.0/src/framework/nunitlite-4.0.csproj | 4 ++-- NUnitLite-1.0.0/src/framework/nunitlite-4.5.csproj | 4 ++-- NUnitLite-1.0.0/src/tests/nunitlite.tests-3.5.csproj | 4 ++-- NUnitLite-1.0.0/src/tests/nunitlite.tests-4.0.csproj | 4 ++-- NUnitLite-1.0.0/src/tests/nunitlite.tests-4.5.csproj | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/NUnitLite-1.0.0/src/TestResultConsole/TestResultConsole.csproj b/NUnitLite-1.0.0/src/TestResultConsole/TestResultConsole.csproj index 5ea4f59..70d7354 100644 --- a/NUnitLite-1.0.0/src/TestResultConsole/TestResultConsole.csproj +++ b/NUnitLite-1.0.0/src/TestResultConsole/TestResultConsole.csproj @@ -40,7 +40,7 @@ DEBUG;TRACE prompt 4 - AllRules.ruleset + AllRules.ruleset pdbonly @@ -49,7 +49,7 @@ TRACE prompt 4 - AllRules.ruleset + AllRules.ruleset diff --git a/NUnitLite-1.0.0/src/framework/nunitlite-2.0.csproj b/NUnitLite-1.0.0/src/framework/nunitlite-2.0.csproj index 2414648..8c26506 100644 --- a/NUnitLite-1.0.0/src/framework/nunitlite-2.0.csproj +++ b/NUnitLite-1.0.0/src/framework/nunitlite-2.0.csproj @@ -40,7 +40,7 @@ TRACE;DEBUG;NET_2_0,CLR_2_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Debug\net-2.0\nunitlite.xml ..\..\bin\Debug\net-2.0\ @@ -50,7 +50,7 @@ TRACE;NET_2_0,CLR_2_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Release\net-2.0\nunitlite.xml ..\..\bin\Release\net-2.0\ diff --git a/NUnitLite-1.0.0/src/framework/nunitlite-3.5.csproj b/NUnitLite-1.0.0/src/framework/nunitlite-3.5.csproj index 3a6e897..cae9779 100644 --- a/NUnitLite-1.0.0/src/framework/nunitlite-3.5.csproj +++ b/NUnitLite-1.0.0/src/framework/nunitlite-3.5.csproj @@ -42,7 +42,7 @@ TRACE;DEBUG;NET_3_5, CLR_2_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Debug\net-3.5\nunitlite.xml @@ -52,7 +52,7 @@ TRACE;NET_3_5, CLR_2_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Release\net-3.5\nunitlite.xml diff --git a/NUnitLite-1.0.0/src/framework/nunitlite-4.0.csproj b/NUnitLite-1.0.0/src/framework/nunitlite-4.0.csproj index e7fbc33..78dfc02 100644 --- a/NUnitLite-1.0.0/src/framework/nunitlite-4.0.csproj +++ b/NUnitLite-1.0.0/src/framework/nunitlite-4.0.csproj @@ -42,7 +42,7 @@ TRACE;DEBUG;NET_4_0, CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Debug\net-4.0\nunitlite.xml @@ -52,7 +52,7 @@ TRACE;NET_4_0, CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Release\net-4.0\nunitlite.xml diff --git a/NUnitLite-1.0.0/src/framework/nunitlite-4.5.csproj b/NUnitLite-1.0.0/src/framework/nunitlite-4.5.csproj index 1e8a279..22c5a3d 100644 --- a/NUnitLite-1.0.0/src/framework/nunitlite-4.5.csproj +++ b/NUnitLite-1.0.0/src/framework/nunitlite-4.5.csproj @@ -42,7 +42,7 @@ TRACE;DEBUG;NET_4_5, CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Debug\net-4.5\nunitlite.xml false @@ -53,7 +53,7 @@ TRACE;NET_4_5, CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset ..\..\bin\Release\net-4.5\nunitlite.xml false diff --git a/NUnitLite-1.0.0/src/tests/nunitlite.tests-3.5.csproj b/NUnitLite-1.0.0/src/tests/nunitlite.tests-3.5.csproj index bb2ff29..fb42a73 100644 --- a/NUnitLite-1.0.0/src/tests/nunitlite.tests-3.5.csproj +++ b/NUnitLite-1.0.0/src/tests/nunitlite.tests-3.5.csproj @@ -42,7 +42,7 @@ TRACE;DEBUG;NET_3_5, CLR_2_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset pdbonly @@ -51,7 +51,7 @@ TRACE;NET_3_5, CLR_2_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset diff --git a/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.0.csproj b/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.0.csproj index 1443f59..ba6e2ae 100644 --- a/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.0.csproj +++ b/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.0.csproj @@ -42,7 +42,7 @@ TRACE;DEBUG;NET_4_0, CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset pdbonly @@ -51,7 +51,7 @@ TRACE;NET_4_0, CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset diff --git a/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.5.csproj b/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.5.csproj index 5601505..a6076f1 100644 --- a/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.5.csproj +++ b/NUnitLite-1.0.0/src/tests/nunitlite.tests-4.5.csproj @@ -42,7 +42,7 @@ TRACE;DEBUG;NET_4_5, CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset false @@ -52,7 +52,7 @@ TRACE;NET_4_5,CLR_4_0,NUNITLITE prompt 4 - AllRules.ruleset + AllRules.ruleset false -- cgit v1.2.3