Skip to content

Commit

Permalink
Explicitly enable NET Analyzers for all projects and move common proj…
Browse files Browse the repository at this point in the history
…ect settings to .props file

Signed-off-by: Aliaksandr Kukrash <multiarc@gmail.com>
  • Loading branch information
multiarc committed Jan 12, 2025
1 parent 1996c29 commit 516f66b
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0;net6.0;net462;net472;net48</TargetFrameworks>
<IsPackable>false</IsPackable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>

Expand Down
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<NeutralLanguage>en-GB</NeutralLanguage>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

<PropertyGroup Label="Package">
Expand Down
1 change: 0 additions & 1 deletion Source/Schema.NET/Schema.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<EmitCompilerGeneratedFiles>True</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GeneratedFiles</CompilerGeneratedFilesOutputPath>
<IncludePendingSchemaObjects>False</IncludePendingSchemaObjects>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<PropertyGroup Label="Package">
Expand Down
2 changes: 0 additions & 2 deletions Tests/Schema.NET.Test/Schema.NET.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup Label="Build">
<TargetFrameworks>net8.0;net6.0;net462;net472;net48</TargetFrameworks>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup Label="Project References">
Expand Down
3 changes: 0 additions & 3 deletions Tools/Schema.NET.Tool/Schema.NET.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<IsPackable>false</IsPackable>
<IsRoslynComponent>true</IsRoslynComponent>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup Label="Package References (.NET 8)" Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="System.Text.Json" Version="8.0.5" />
Expand Down
2 changes: 0 additions & 2 deletions Tools/Schema.NET.Updater/Schema.NET.Updater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 516f66b

Please sign in to comment.