Skip to content

Commit

Permalink
Use IsExternalInit package instead of internals.cs. Use latest .Net a…
Browse files Browse the repository at this point in the history
…nalyzers.
  • Loading branch information
RobThree committed Nov 15, 2022
1 parent 913045e commit 8236e9d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 31 deletions.
9 changes: 2 additions & 7 deletions IdGen.Configuration/IdGen.Configuration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<PackageIconUrl />
<RepositoryUrl>https://github.com/RobThree/IdGen</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<Configurations>Debug;Release;ReleaseWithDocumentation</Configurations>
</PropertyGroup>

Expand All @@ -39,13 +41,6 @@
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\IdGen\IdGen.csproj" />
</ItemGroup>
Expand Down
6 changes: 2 additions & 4 deletions IdGen.DependencyInjection/IdGen.DependencyInjection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<RepositoryType>git</RepositoryType>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<Configurations>Debug;Release;ReleaseWithDocumentation</Configurations>
</PropertyGroup>

Expand All @@ -39,10 +41,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 5 additions & 3 deletions IdGen/IdGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<RepositoryUrl>https://github.com/RobThree/IdGen</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Nullable>enable</Nullable>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<LangVersion>latest</LangVersion>
<Configurations>Debug;Release;ReleaseWithDocumentation</Configurations>
</PropertyGroup>
Expand All @@ -40,9 +42,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="IsExternalInit" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
17 changes: 0 additions & 17 deletions IdGen/Internals.cs

This file was deleted.

0 comments on commit 8236e9d

Please sign in to comment.