Skip to content

Commit 4a0b76d

Browse files
Set locker to source generated version
1 parent 9c324bd commit 4a0b76d

4 files changed

Lines changed: 30 additions & 9 deletions

File tree

bus/EasyCaching.Bus.Zookeeper/EasyCaching.Bus.Zookeeper.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@
4242
</ItemGroup>
4343

4444
<ItemGroup>
45-
<PackageReference Include="Backport.System.Threading.Lock" Version="3.1.5" />
46-
<Using Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="System.Threading.Lock" />
47-
<Using Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="Backport.System.Threading.Lock" />
48-
<Using Alias="LockFactory" Include="Backport.System.Threading.LockFactory" />
45+
<PackageReference Include="Backport.System.Threading.Lock" Version="3.1.5">
46+
<PrivateAssets>all</PrivateAssets>
47+
<IncludeAssets>analyzers</IncludeAssets>
48+
</PackageReference>
49+
<Using Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="System.Threading.Lock" />
50+
<Using Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="Backport.System.Threading.Lock" />
51+
<Using Alias="LockFactory" Include="Backport.System.Threading.LockFactory" />
4952
</ItemGroup>
5053

5154
</Project>

src/EasyCaching.Core/EasyCaching.Core.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@
5454
<ItemGroup>
5555
<PackageReference Include="AsyncKeyedLock" Version="7.1.8" />
5656
</ItemGroup>
57-
57+
5858
<ItemGroup>
59-
<PackageReference Include="Backport.System.Threading.Lock" Version="3.1.5" />
60-
<Using Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="System.Threading.Lock" />
61-
<Using Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="Backport.System.Threading.Lock" />
62-
<Using Alias="LockFactory" Include="Backport.System.Threading.LockFactory" />
59+
<PackageReference Include="Backport.System.Threading.Lock" Version="3.1.5">
60+
<PrivateAssets>all</PrivateAssets>
61+
<IncludeAssets>analyzers</IncludeAssets>
62+
</PackageReference>
63+
<Using Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="System.Threading.Lock" />
64+
<Using Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" Alias="Lock" Include="Backport.System.Threading.Lock" />
65+
<Using Alias="LockFactory" Include="Backport.System.Threading.LockFactory" />
6366
</ItemGroup>
6467

6568
</Project>

test/EasyCaching.UnitTests/EasyCaching.UnitTests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@
6161
<ProjectReference Include="..\..\serialization\EasyCaching.Serialization.Protobuf\EasyCaching.Serialization.Protobuf.csproj" />
6262
<ProjectReference Include="..\..\serialization\EasyCaching.Serialization.SystemTextJson\EasyCaching.Serialization.SystemTextJson.csproj" />
6363
</ItemGroup>
64+
65+
<ItemGroup>
66+
<None Update="xunit.runner.json">
67+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
68+
</None>
69+
</ItemGroup>
6470
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
3+
"parallelAlgorithm": "aggressive",
4+
"parallelizeAssembly": true,
5+
"parallelizeTestCollections": true,
6+
"stopOnFail": true,
7+
"showLiveOutput": true,
8+
"maxParallelThreads": "0.5x"
9+
}

0 commit comments

Comments
 (0)