Skip to content

Commit f43b1f6

Browse files
authored
Add ReferenceTrimmer and remove unused references (#2764)
* Add ReferenceTrimmer and remove unused references * Generate documentation for more projects to check references correctly
1 parent cebdfb3 commit f43b1f6

File tree

15 files changed

+8
-16
lines changed

15 files changed

+8
-16
lines changed

Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@
3131
<_Parameter1>$(AssemblyName).Test</_Parameter1>
3232
</AssemblyAttribute>
3333
</ItemGroup>
34+
<ItemGroup>
35+
<PackageReference Include="ReferenceTrimmer" Version="3.3.6">
36+
<PrivateAssets>all</PrivateAssets>
37+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
38+
</PackageReference>
39+
</ItemGroup>
3440
</Project>

src/JoinRpg.DI/JoinRpg.DI.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<PackageReference Include="Autofac" Version="8.0.0" />
88
</ItemGroup>
99
<ItemGroup>
10-
<ProjectReference Include="..\JoinRpg.Common.EmailSending.Impl\JoinRpg.Common.EmailSending.Impl.csproj" />
1110
<ProjectReference Include="..\JoinRpg.Dal.Impl\JoinRpg.Dal.Impl.csproj" />
1211
<ProjectReference Include="..\JoinRpg.Services.Email\JoinRpg.Services.Email.csproj" />
1312
<ProjectReference Include="..\JoinRpg.Services.Export\JoinRpg.Services.Export.csproj" />

src/JoinRpg.Dal.Impl/JoinRpg.Dal.Impl.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<RootNamespace>JoinRpg.Dal.Impl</RootNamespace>
55
<AssemblyName>JoinRpg.Dal.Impl</AssemblyName>
66
<EmbeddedResourceUseDependentUponConvention>true</EmbeddedResourceUseDependentUponConvention>
7-
<GenerateDocumentationFile>false</GenerateDocumentationFile>
87
</PropertyGroup>
98
<ItemGroup>
109
<ProjectReference Include="..\JoinRpg.Data.Interfaces\JoinRpg.Data.Interfaces.csproj" />

src/JoinRpg.Dal.Impl/Repositories/ClaimsRepositoryImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public async Task<IReadOnlyCollection<ClaimWithPlayer>> GetClaimHeadersWithPlaye
7878
{
7979
Player = claim.Player,
8080
ClaimId = claim.ClaimId,
81-
CharacterName = claim.Character.CharacterName,
81+
CharacterName = claim.Character!.CharacterName,
8282
Extra = claim.Player.Extra,
8383
})
8484
.ToListAsync();

src/JoinRpg.Helpers.Test/JoinRpg.Helpers.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</PropertyGroup>
88
<ItemGroup>
99
<ProjectReference Include="..\JoinRpg.Helpers\JoinRpg.Helpers.csproj" />
10-
<ProjectReference Include="..\JoinRpg.TestHelpers\JoinRpg.TestHelpers.csproj" />
1110
</ItemGroup>
1211
<ItemGroup>
1312
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />

src/JoinRpg.Helpers.Web.Test/JoinRpg.Helpers.Web.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
</PropertyGroup>
88
<ItemGroup>
99
<ProjectReference Include="..\JoinRpg.Helpers.Web\JoinRpg.Helpers.Web.csproj" />
10-
<ProjectReference Include="..\JoinRpg.TestHelpers\JoinRpg.TestHelpers.csproj" />
1110
</ItemGroup>
1211
<ItemGroup>
1312
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />

src/JoinRpg.Helpers/JoinRpg.Helpers.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@
66
<LangVersion>latest</LangVersion>
77
<ImplicitUsings>enable</ImplicitUsings>
88
</PropertyGroup>
9-
<ItemGroup>
10-
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
11-
</ItemGroup>
129
</Project>

src/JoinRpg.IntegrationTests/JoinRpg.IntegrationTest.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>net8.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
7-
<GenerateDocumentationFile>false</GenerateDocumentationFile>
87
</PropertyGroup>
98

109
<ItemGroup>

src/JoinRpg.Markdown.Test/JoinRpg.Markdown.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<ItemGroup>
88
<ProjectReference Include="..\JoinRpg.Helpers\JoinRpg.Helpers.csproj" />
99
<ProjectReference Include="..\JoinRpg.Markdown\JoinRpg.Markdown.csproj" />
10-
<ProjectReference Include="..\JoinRpg.TestHelpers\JoinRpg.TestHelpers.csproj" />
1110
</ItemGroup>
1211
<ItemGroup>
1312
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />

src/JoinRpg.Portal.Test/JoinRpg.Portal.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>net8.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
7-
<GenerateDocumentationFile>false</GenerateDocumentationFile>
87
</PropertyGroup>
98

109
<ItemGroup>

0 commit comments

Comments
 (0)