Skip to content

Commit 93b71e1

Browse files
committed
Suppress all warnings + Add task to buils Nuget Packages + Clean ( Formatting Code ) Soultion
1 parent 2e0d462 commit 93b71e1

File tree

64 files changed

+1832
-1306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1832
-1306
lines changed

CodeAnalysis.ruleset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.Features" RuleNamespace="Microsoft.CodeAnalysis.CSharp.Features">
7171
<Rule Id="IDE0003" Action="Warning" />
7272
<Rule Id="IDE0011" Action="None" />
73+
<Rule Id="IDE1006" Action="None" />
7374
</Rules>
7475
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
7576
<Rule Id="SA0001" Action="None" />

Directory.Build.props

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFramework>netcoreapp2.1</TargetFramework>
4+
</PropertyGroup>
5+
<!--<PropertyGroup>
6+
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">2.0.0</NetStandardImplicitPackageVersion>
7+
</PropertyGroup>-->
8+
<!-- Framework constants -->
9+
10+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
11+
<DefineConstants>$(DefineConstants);NETCORE</DefineConstants>
12+
<DebugType>portable</DebugType>
13+
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
15+
<DefineConstants>$(DefineConstants);NETCORE</DefineConstants>
16+
<DebugType>portable</DebugType>
17+
</PropertyGroup>
18+
19+
<PropertyGroup>
20+
<LangVersion>latest</LangVersion>
21+
</PropertyGroup>
22+
23+
<Import Project="Directory.Version.props" />
24+
<Import Project="Directory.CodeAnalysis.props" />
25+
26+
<PropertyGroup Label="Package Versions">
27+
<AspNetCoreVersion>2.1.0-preview1-final</AspNetCoreVersion>
28+
<XunitVersion>2.3.1</XunitVersion>
29+
<XunitAnalyzersVersion>0.8.0</XunitAnalyzersVersion>
30+
</PropertyGroup>
31+
32+
<ItemGroup>
33+
<PackageReference Include="Microsoft.AspNetCore.App" Version="$(AspNetCoreVersion)" />
34+
<PackageReference Include="Serilog" Version="2.6.0" />
35+
<PackageReference Include="Serilog.Extensions.Logging" Version="2.0.0" />
36+
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" />
37+
<PackageReference Include="Serilog.Formatting.Compact" Version="1.0.0" />
38+
<PackageReference Include="Serilog.Settings.Configuration" Version="2.6.1" />
39+
<PackageReference Include="Serilog.Sinks.ColoredConsole" Version="3.0.1" />
40+
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
41+
<PackageReference Include="Serilog.Sinks.File" Version="4.0.0" />
42+
<PackageReference Include="Serilog.Sinks.Literate" Version="3.0.0" />
43+
</ItemGroup>
44+
45+
<!--<PropertyGroup>
46+
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
47+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
48+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
49+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
50+
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
51+
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
52+
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
53+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
54+
</PropertyGroup>-->
55+
56+
<!--<Target Name="ShowReservedProperties" AfterTargets="BeforeBuild">
57+
<Message Text=" SolutionDir = $(SolutionDir)" Importance="high" />
58+
<Message Text=" MSBuildProjectDirectory = $(MSBuildProjectDirectory)" Importance="high" />
59+
<Message Text=" MSBuildThisFileDirectory = $(MSBuildThisFileDirectory)" Importance="high" />
60+
<Message Text=" MSBuildProjectFile = $(MSBuildProjectFile)" Importance="high" />
61+
<Message Text=" MSBuildThisFileName = $(MSBuildThisFileName)" Importance="high" />
62+
<Message Text=" MSBuildProjectExtension = $(MSBuildProjectExtension)" Importance="high" />
63+
<Message Text=" MSBuildProjectFullPath = $(MSBuildProjectFullPath)" Importance="high" />
64+
<Message Text=" MSBuildProjectName = $(MSBuildProjectName)" Importance="high" />
65+
<Message Text=" MSBuildBinPath = $(MSBuildBinPath)" Importance="high" />
66+
<Message Text=" MSBuildProjectDefaultTargets = $(MSBuildProjectDefaultTargets)" Importance="high" />
67+
<Message Text=" MSBuildExtensionsPath = $(MSBuildExtensionsPath)" Importance="high" />
68+
<Message Text=" MSBuildStartupDirectory = $(MSBuildStartupDirectory)" Importance="high"/>
69+
</Target>-->
70+
71+
<!--<Target Name="ShowOtherProperties">
72+
<Message Text=" " />
73+
<Message Text=" " />
74+
<Message Text=" Environment (SET) Variables* " />
75+
<Message Text=" ============================ " />
76+
<Message Text=" COMPUTERNAME = *$(COMPUTERNAME)* " />
77+
<Message Text=" USERDNSDOMAIN = *$(USERDNSDOMAIN)* " />
78+
<Message Text=" USERDOMAIN = *$(USERDOMAIN)* " />
79+
<Message Text=" USERNAME = *$(USERNAME)* " />
80+
</Target>-->
81+
82+
</Project>

Directory.CodeAnalysis.props

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project>
2+
3+
<ItemGroup>
4+
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2">
5+
<PrivateAssets>All</PrivateAssets>
6+
</PackageReference>
7+
</ItemGroup>
8+
9+
<PropertyGroup>
10+
<CodeAnalysisRuleSet>$(SolutionDir)\CodeAnalysis.ruleset</CodeAnalysisRuleSet>
11+
<Features>IOperation</Features>
12+
<NoWarn>1701;1702;1705</NoWarn>
13+
<RunCodeAnalysis>false</RunCodeAnalysis>
14+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
15+
<WarningsAsErrors />
16+
<TreatSpecificWarningsAsErrors />
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<AdditionalFiles Include="$(SolutionDir)\Stylecop.json" Link="Stylecop.json" />
21+
<AdditionalFiles Include="$(SolutionDir)\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
22+
</ItemGroup>
23+
24+
</Project>

Directory.Version.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Import Project="version.props" />
3+
</Project>

UnobtrusiveMultitenancy

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)