Skip to content

Commit

Permalink
chore: Cleanup properties
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jun 21, 2024
1 parent 2c4fb06 commit 97b924a
Show file tree
Hide file tree
Showing 26 changed files with 130 additions and 188 deletions.
3 changes: 0 additions & 3 deletions src/Libplanet.Action/Libplanet.Action.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.*" />
<PackageReference Include="System.Text.Json" Version="6.0.*" />
Expand Down
3 changes: 0 additions & 3 deletions src/Libplanet.Common/Libplanet.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.*" />
<PackageReference Include="System.Text.Json" Version="6.0.*" />
Expand Down
3 changes: 0 additions & 3 deletions src/Libplanet.Crypto/Libplanet.Crypto.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.*" />
<PackageReference Include="System.Text.Json" Version="6.0.*" />
Expand Down
1 change: 1 addition & 0 deletions src/Libplanet.Net/Libplanet.Net.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Title>P2P implementation for Libplanet</Title>
<Description>A peer-to-peer networking layer based on Libplanet.</Description>
Expand Down
41 changes: 21 additions & 20 deletions src/Libplanet.RocksDBStore/Libplanet.RocksDBStore.csproj
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Summary>A Libplanet.IStore implementation using RocksDB</Summary>
<Description>A Libplanet.IStore implementation using RocksDB</Description>
</PropertyGroup>

<PropertyGroup>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<Nullable>enable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<PropertyGroup>
<Summary>A Libplanet.IStore implementation using RocksDB</Summary>
<Description>A Libplanet.IStore implementation using RocksDB</Description>
</PropertyGroup>

<PropertyGroup>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<Nullable>enable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RocksDB" Version="8.5.3.42578" />
<PackageReference Include="Serilog" Version="2.8.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="RocksDB" Version="8.5.3.42578" />
<PackageReference Include="Serilog" Version="2.8.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Libplanet\Libplanet.csproj" />
<ProjectReference Include="..\Libplanet.Store\Libplanet.Store.csproj" />
<!-- FIXME: We should specify the version range when the following NuGet issue
is addressed: <https://github.com/NuGet/Home/issues/5556>. -->
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Libplanet\Libplanet.csproj" />
<ProjectReference Include="..\Libplanet.Store\Libplanet.Store.csproj" />
<!-- FIXME: We should specify the version range when the following NuGet issue
is addressed: <https://github.com/NuGet/Home/issues/5556>. -->
</ItemGroup>

</Project>
26 changes: 10 additions & 16 deletions src/Libplanet.Store.Remote/Libplanet.Store.Remote.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.61.0" />
</ItemGroup>

<ItemGroup>
<Protobuf Include="**/*.proto" GrpcServices="Both"/>
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<LangVersion>10</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.61.0" />
<PackageReference Remove="StyleCop.Analyzers" />
</ItemGroup>

<ItemGroup Condition="'$(SkipSonar)' != 'true'">
<PackageReference Remove="SonarAnalyzer.CSharp" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Libplanet.Store\Libplanet.Store.csproj" />
</ItemGroup>
<ItemGroup>
<Protobuf Include="**/*.proto" GrpcServices="Both"/>
<ProjectReference Include="..\Libplanet.Store\Libplanet.Store.csproj" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/Libplanet.Store/Libplanet.Store.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<NoWarn>$(NoWarn);NU1904</NoWarn>
<!-- FIXME: NU1904 should be removed once LiteDB is bumped to a secure version -->
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/Libplanet.Stun/Libplanet.Stun.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Summary>A STUN/TURN client implementation for Libplanet.</Summary>
<Description>A STUN/TURN client implementation for Libplanet.</Description>
Expand All @@ -15,4 +16,5 @@
<PackageReference Include="Serilog" Version="2.8.0" />
<PackageReference Include="Nito.AsyncEx" Version="5.0.0" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/Libplanet/Libplanet.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Summary>A .NET library for creating multiplayer online game in decentralized fashion.</Summary>
<Description>A .NET library for creating multiplayer online game in decentralized fashion.
Expand Down
15 changes: 6 additions & 9 deletions test/Libplanet.Analyzers.Tests/Libplanet.Analyzers.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Nullable>disable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);SA1401</NoWarn>
<NoWarn>$(NoWarn);SA1401</NoWarn>
</PropertyGroup>

<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference
Include="Microsoft.CodeAnalysis.Analyzers"
Version="3.3.0" />
<PackageReference
Include="Microsoft.CodeAnalysis.CSharp.Workspaces"
Version="3.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.7.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference
Include="..\..\tools\Libplanet.Analyzers\Libplanet.Analyzers.csproj" />
<ProjectReference Include="..\..\tools\Libplanet.Analyzers\Libplanet.Analyzers.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
Expand All @@ -11,9 +12,6 @@
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.7.*" />
</ItemGroup>
Expand All @@ -30,4 +28,5 @@
<ProjectReference Include="..\..\src\Libplanet\Libplanet.csproj" />
<ProjectReference Include="..\..\src\Libplanet.Crypto.Secp256k1\Libplanet.Crypto.Secp256k1.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<ItemGroup>
</ItemGroup>

<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\tools\Libplanet.Explorer.Cocona\Libplanet.Explorer.Cocona.csproj" />
<ProjectReference Include="..\Libplanet.Explorer.Tests\Libplanet.Explorer.Tests.csproj" />
</ItemGroup>
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\tools\Libplanet.Explorer.Cocona\Libplanet.Explorer.Cocona.csproj" />
<ProjectReference Include="..\Libplanet.Explorer.Tests\Libplanet.Explorer.Tests.csproj" />
</ItemGroup>

</Project>

22 changes: 9 additions & 13 deletions test/Libplanet.Explorer.Tests/Libplanet.Explorer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Nullable>disable</Nullable>
<IsPublishable>false</IsPublishable>
</PropertyGroup>


<ItemGroup>
</ItemGroup>
<PropertyGroup>
<Nullable>disable</Nullable>
<IsPublishable>false</IsPublishable>
</PropertyGroup>

<ItemGroup>
<PackageReference Remove="Menees.Analyzers.2017" />
Expand All @@ -18,10 +14,10 @@
<PackageReference Remove="SonarAnalyzer.CSharp" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\tools\Libplanet.Explorer\Libplanet.Explorer.csproj" />
<ProjectReference Include="..\Libplanet.Tests\Libplanet.Tests.csproj" />
<ProjectReference Include="..\Libplanet.Mocks\Libplanet.Mocks.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\tools\Libplanet.Explorer\Libplanet.Explorer.csproj" />
<ProjectReference Include="..\Libplanet.Tests\Libplanet.Tests.csproj" />
<ProjectReference Include="..\Libplanet.Mocks\Libplanet.Mocks.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
</ItemGroup>
<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(TestsTargetFramework)'!='' ">
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.7.*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.7.*" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>

<ItemGroup Condition="'$(SkipSonar)' != 'true'">
<PackageReference Remove="SonarAnalyzer.CSharp" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\tools\Libplanet.Extensions.Cocona\Libplanet.Extensions.Cocona.csproj" />
<ProjectReference Include="..\..\test\Libplanet.RocksDBStore.Tests\Libplanet.RocksDBStore.Tests.csproj" />
<ProjectReference Include="..\Libplanet.Tests\Libplanet.Tests.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="Fixtures\**"
CopyToOutputDirectory="PreserveNewest"
CopyToPublishDirectory="PreserveNewest"
LinkBase="Fixtures" />
</ItemGroup>
</Project>
<ItemGroup>
<ProjectReference Include="..\..\tools\Libplanet.Extensions.Cocona\Libplanet.Extensions.Cocona.csproj" />
<ProjectReference Include="..\..\test\Libplanet.RocksDBStore.Tests\Libplanet.RocksDBStore.Tests.csproj" />
<ProjectReference Include="..\Libplanet.Tests\Libplanet.Tests.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="Fixtures\**" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" LinkBase="Fixtures" />
</ItemGroup>

</Project>
3 changes: 0 additions & 3 deletions test/Libplanet.Mocks/Libplanet.Mocks.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Immutable" Version="1.*" />
<PackageReference Include="System.Text.Json" Version="6.0.*" />
Expand Down
2 changes: 2 additions & 0 deletions test/Libplanet.Net.Tests/Libplanet.Net.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down Expand Up @@ -30,4 +31,5 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>

<PropertyGroup>
<Nullable>disable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -9,9 +10,6 @@
<TargetFramework>$(TestsTargetFramework)</TargetFramework>
</PropertyGroup>

<PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.0.0" />
<PackageReference Include="Serilog.Sinks.XUnit" Version="1.0.7" />
Expand All @@ -26,4 +24,5 @@
<ProjectReference Include="..\..\src\Libplanet.RocksDBStore\Libplanet.RocksDBStore.csproj" />
<ProjectReference Include="..\Libplanet.Tests\Libplanet.Tests.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit 97b924a

Please sign in to comment.