Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/NUnitLite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Champ <spchamp@users.noreply.github.com>2020-02-06 13:50:41 +0300
committerGitHub <noreply@github.com>2020-02-06 13:50:41 +0300
commit065bfc5784d1062ab26540c850ca292b8a04aa85 (patch)
tree9a8b4d0376bb55569aff24c71b50cd1ebbdad036
parent7eb477fb0db29a3a87c892b002151caad715e2ea (diff)
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.
-rw-r--r--NUnitLite-1.0.0/src/TestResultConsole/TestResultConsole.csproj4
-rw-r--r--NUnitLite-1.0.0/src/framework/nunitlite-2.0.csproj4
-rw-r--r--NUnitLite-1.0.0/src/framework/nunitlite-3.5.csproj4
-rw-r--r--NUnitLite-1.0.0/src/framework/nunitlite-4.0.csproj4
-rw-r--r--NUnitLite-1.0.0/src/framework/nunitlite-4.5.csproj4
-rw-r--r--NUnitLite-1.0.0/src/tests/nunitlite.tests-3.5.csproj4
-rw-r--r--NUnitLite-1.0.0/src/tests/nunitlite.tests-4.0.csproj4
-rw-r--r--NUnitLite-1.0.0/src/tests/nunitlite.tests-4.5.csproj4
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 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -49,7 +49,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
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 @@
<DefineConstants>TRACE;DEBUG;NET_2_0,CLR_2_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Debug\net-2.0\nunitlite.xml</DocumentationFile>
<OutputPath>..\..\bin\Debug\net-2.0\</OutputPath>
</PropertyGroup>
@@ -50,7 +50,7 @@
<DefineConstants>TRACE;NET_2_0,CLR_2_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Release\net-2.0\nunitlite.xml</DocumentationFile>
<OutputPath>..\..\bin\Release\net-2.0\</OutputPath>
</PropertyGroup>
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 @@
<DefineConstants>TRACE;DEBUG;NET_3_5, CLR_2_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Debug\net-3.5\nunitlite.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -52,7 +52,7 @@
<DefineConstants>TRACE;NET_3_5, CLR_2_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Release\net-3.5\nunitlite.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
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 @@
<DefineConstants>TRACE;DEBUG;NET_4_0, CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Debug\net-4.0\nunitlite.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -52,7 +52,7 @@
<DefineConstants>TRACE;NET_4_0, CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Release\net-4.0\nunitlite.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
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 @@
<DefineConstants>TRACE;DEBUG;NET_4_5, CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Debug\net-4.5\nunitlite.xml</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
@@ -53,7 +53,7 @@
<DefineConstants>TRACE;NET_4_5, CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>..\..\bin\Release\net-4.5\nunitlite.xml</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
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 @@
<DefineConstants>TRACE;DEBUG;NET_3_5, CLR_2_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -51,7 +51,7 @@
<DefineConstants>TRACE;NET_3_5, CLR_2_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
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 @@
<DefineConstants>TRACE;DEBUG;NET_4_0, CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -51,7 +51,7 @@
<DefineConstants>TRACE;NET_4_0, CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
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 @@
<DefineConstants>TRACE;DEBUG;NET_4_5, CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -52,7 +52,7 @@
<DefineConstants>TRACE;NET_4_5,CLR_4_0,NUNITLITE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRuleSet Condition="'$(RunCodeAnalysis)' != 'false'">AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>