summaryrefslogtreecommitdiff
path: root/src/bindings/mono/efl_sharp.csproj.in
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-12-30 21:42:24 +0000
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-12-30 22:17:32 -0300
commite632c1334a123a2793776b0b60c04ebf00fcd7b8 (patch)
tree3d070a2e441c5e6dd0e79278d50622b3a3fe5585 /src/bindings/mono/efl_sharp.csproj.in
parent2af38d11ed58d95f050dc08cc038d6b4aa30ac91 (diff)
csharp: Add StyleCop support to dotnet build
This patch adds support to run the StyleCop rules. To enable, -Ddotnet=true is needed, You can pass -Ddotnet-stylecop=CAXXXX,CAXXYY where X and Y are digits for CAs or SAs. You can also ask that the CAs and SAs cause errors instead of warnings. Differential Revision: https://phab.enlightenment.org/D10969
Diffstat (limited to 'src/bindings/mono/efl_sharp.csproj.in')
-rw-r--r--src/bindings/mono/efl_sharp.csproj.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bindings/mono/efl_sharp.csproj.in b/src/bindings/mono/efl_sharp.csproj.in
index ce6a9e463c..e03be33950 100644
--- a/src/bindings/mono/efl_sharp.csproj.in
+++ b/src/bindings/mono/efl_sharp.csproj.in
@@ -12,11 +12,6 @@
12 <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> 12 <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
13 </PropertyGroup> 13 </PropertyGroup>
14 14
15 <PropertyGroup>
16 <DocumentationFile>$(AssemblyName).xml</DocumentationFile>
17 <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
18 </PropertyGroup>
19
20 <!-- <PropertyGroup Condition="'$(BuildType)'=='Beta'"> --> 15 <!-- <PropertyGroup Condition="'$(BuildType)'=='Beta'"> -->
21 <!-- <DefineConstants>EFL_BETA</DefineConstants> --> 16 <!-- <DefineConstants>EFL_BETA</DefineConstants> -->
22 <!-- </PropertyGroup> --> 17 <!-- </PropertyGroup> -->
@@ -41,4 +36,13 @@
41 <Compile Include="./*.cs" /> 36 <Compile Include="./*.cs" />
42 </ItemGroup> 37 </ItemGroup>
43 38
39 <!-- Code style configuration -->
40 <ItemGroup>
41 <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.6" />
42 <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
43 </ItemGroup>
44 <PropertyGroup>
45 <CodeAnalysisRuleSet>@CA_RULESET@</CodeAnalysisRuleSet>
46 </PropertyGroup>
47
44</Project> 48</Project>