Skip to content

Commit 68f6f8c

Browse files
committed
Use built-in (and up-to-date) .NET Analyzers
1 parent 65913b9 commit 68f6f8c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

PowerShellEditorServices.Common.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
<RepositoryType>git</RepositoryType>
1212
<RepositoryUrl>https://github.com/PowerShell/PowerShellEditorServices</RepositoryUrl>
1313
<DebugType>portable</DebugType>
14+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
15+
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
16+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1417
</PropertyGroup>
1518
</Project>

src/PowerShellEditorServices.Hosting/PowerShellEditorServices.Hosting.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131

3232
<ItemGroup>
3333
<ProjectReference Include="..\PowerShellEditorServices\PowerShellEditorServices.csproj" PrivateAssets="all" />
34-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.2">
35-
<PrivateAssets>all</PrivateAssets>
36-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
37-
</PackageReference>
3834
</ItemGroup>
3935

4036
<ItemGroup Condition="'$(TargetFramework)'=='net461'">

0 commit comments

Comments
 (0)