Skip to content

Commit

Permalink
Add the dotnet analyzers.
Browse files Browse the repository at this point in the history
  • Loading branch information
peymanr34 committed Dec 13, 2023
1 parent 1c60f12 commit 9ae6e12
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ImageListView/ImageListView.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net35'">
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand All @@ -29,14 +38,12 @@
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug without WPF\</OutputPath>
<DefineConstants>TRACE;DEBUG;BONUSPACK;BENCHMARK</DefineConstants>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release without WPF|AnyCPU'">
<OutputPath>bin\Release without WPF\</OutputPath>
<Optimize>true</Optimize>
<UseVSHostingProcess>false</UseVSHostingProcess>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<WarningLevel>0</WarningLevel>
</PropertyGroup>

Expand Down
9 changes: 9 additions & 0 deletions WPFThumbnailExtractor/WPFThumbnailExtractor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
</PropertyGroup>

<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net35'">
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ImageListView\ImageListView.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 9ae6e12

Please sign in to comment.