Skip to content

Commit e1e2290

Browse files
committed
workaround ImageSharp.Benchmarks issues
1 parent f9f8ad9 commit e1e2290

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<GenerateProgramFile>false</GenerateProgramFile>
1010
<!--Used to hide test project from dotnet test-->
1111
<IsTestProject>false</IsTestProject>
12+
13+
<!-- Uncomment this to run benchmarks depending on Colorful or Pfim (colorspaces and TGA): -->
14+
<!--<SignAssembly>false</SignAssembly>-->
1215
</PropertyGroup>
1316

1417
<ItemGroup>
@@ -25,4 +28,21 @@
2528
<PackageReference Include="System.Drawing.Common" />
2629
</ItemGroup>
2730

31+
<!-- Exclude benchmarks using internals, in case of unsigned benchmark execution: -->
32+
<ItemGroup Condition="'$(SignAssembly)' == 'false'">
33+
<Compile Remove="Codecs\Jpeg\BlockOperations\**" />
34+
<Compile Remove="Codecs\Jpeg\DoubleBufferedStreams.cs" />
35+
<Compile Remove="Codecs\Jpeg\YCbCrColorConversion.cs" />
36+
<Compile Remove="Codecs\Jpeg\DecodeJpegParseStreamOnly.cs" />
37+
<Compile Remove="Color\Bulk\**" />
38+
<Compile Remove="Color\RgbToYCbCr.cs" />
39+
<Compile Remove="Color\YCbCrToRgb.cs" />
40+
<Compile Remove="General\Vectorization\**" />
41+
<Compile Remove="General\PixelConversion\**" />
42+
<Compile Remove="General\BasicMath\ModuloPowerOfTwoConstant.cs" />
43+
<Compile Remove="General\BasicMath\ModuloPowerOfTwoVariable.cs" />
44+
<Compile Remove="PixelBlenders\**" />
45+
<Compile Remove="Samplers\Resize.cs" />
46+
</ItemGroup>
47+
2848
</Project>

0 commit comments

Comments
 (0)