Skip to content

Commit 1c4b929

Browse files
Merge pull request #31 from SixLabors/updateSharedInfra
Update shared infrastructure
2 parents e232799 + 3e6c449 commit 1c4b929

File tree

68 files changed

+253
-269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+253
-269
lines changed

Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@
9191
https://www.myget.org/F/sixlabors/api/v3/index.json;
9292
https://api.nuget.org/v3/index.json;
9393
</RestoreSources>
94-
<SixLaborsPublicKey>002400000c8000009400000006020000002400005253413100040000010001000147e6fe6766715eec6cfed61f1e7dcdbf69748a3e355c67e9d8dfd953acab1d5e012ba34b23308166fdc61ee1d0390d5f36d814a6091dd4b5ed9eda5a26afced924c683b4bfb4b3d64b0586a57eff9f02b1f84e3cb0ddd518bd1697f2c84dcbb97eb8bb5c7801be12112ed0ec86db934b0e9a5171e6bb1384b6d2f7d54dfa97</SixLaborsPublicKey>
94+
<SixLaborsPublicKey>00240000048000009400000006020000002400005253413100040000010001000147e6fe6766715eec6cfed61f1e7dcdbf69748a3e355c67e9d8dfd953acab1d5e012ba34b23308166fdc61ee1d0390d5f36d814a6091dd4b5ed9eda5a26afced924c683b4bfb4b3d64b0586a57eff9f02b1f84e3cb0ddd518bd1697f2c84dcbb97eb8bb5c7801be12112ed0ec86db934b0e9a5171e6bb1384b6d2f7d54dfa97</SixLaborsPublicKey>
9595
<UseSharedCompilation>true</UseSharedCompilation>
96+
<SignAssembly>true</SignAssembly>
9697
</PropertyGroup>
9798

9899
<!-- Package references and additional files which are consumed by all projects -->

Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<PackageReference Update="StyleCop.Analyzers" PrivateAssets="All" Version="1.1.118" />
2424

2525
<!--Src Dependencies-->
26-
<PackageReference Update="SixLabors.Fonts" Version="1.0.0-unstable0024" />
27-
<PackageReference Update="SixLabors.ImageSharp" Version="1.0.0-unstable0702" />
26+
<PackageReference Update="SixLabors.Fonts" Version="1.0.0-unstable0032" />
27+
<PackageReference Update="SixLabors.ImageSharp" Version="1.0.0-unstable0965" />
2828
</ItemGroup>
2929

3030
</Project>

ImageSharp.Drawing.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SharedInfrastructure", "sha
327327
EndProject
328328
Global
329329
GlobalSection(SharedMSBuildProjectFiles) = preSolution
330+
shared-infrastructure\src\SharedInfrastructure\SharedInfrastructure.projitems*{2e33181e-6e28-4662-a801-e2e7dc206029}*SharedItemsImports = 5
330331
shared-infrastructure\src\SharedInfrastructure\SharedInfrastructure.projitems*{68a8cc40-6aed-4e96-b524-31b1158fdeea}*SharedItemsImports = 13
331332
EndGlobalSection
332333
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/Directory.Build.props

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@
2929
<ItemGroup>
3030
<!--TODO: Delete this once tests Stylecop issues are fixed-->
3131
<PackageReference Include="StyleCop.Analyzers" IsImplicitlyDefined="true" />
32-
32+
33+
<!-- DynamicProxyGenAssembly2 is needed so Moq can use our internals -->
3334
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" PublicKey="0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7" />
34-
<InternalsVisibleTo Include="DynamicProxyGenAssembly2, PublicKeyToken=null" />
35-
<InternalsVisibleTo Include="ImageSharp.Drawing.Benchmarks" />
35+
<InternalsVisibleTo Include="SixLabors.ImageSharp.Tests" PublicKey="$(SixLaborsPublicKey)" />
36+
<InternalsVisibleTo Include="ImageSharp.Drawing.Benchmarks" PublicKey="$(SixLaborsPublicKey)" />
3637
</ItemGroup>
3738

3839
</Project>

src/ImageSharp.Drawing/ImageSharp.Drawing.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
<PackageReference Include="SixLabors.ImageSharp" />
1818
</ItemGroup>
1919

20-
<ItemGroup>
21-
<InternalsVisibleTo Include="SixLabors.ImageSharp.Tests" />
22-
</ItemGroup>
23-
2420
<Import Project="..\..\shared-infrastructure\src\SharedInfrastructure\SharedInfrastructure.projitems" Label="Shared" />
2521

2622
</Project>

src/ImageSharp.Drawing/Processing/BrushApplicator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace SixLabors.ImageSharp.Processing
1515
/// <typeparam name="TPixel">The pixel format.</typeparam>
1616
/// <seealso cref="IDisposable" />
1717
public abstract class BrushApplicator<TPixel> : IDisposable
18-
where TPixel : struct, IPixel<TPixel>
18+
where TPixel : unmanaged, IPixel<TPixel>
1919
{
2020
/// <summary>
2121
/// Initializes a new instance of the <see cref="BrushApplicator{TPixel}"/> class.

src/ImageSharp.Drawing/Processing/DrawingHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class DrawingHelpers
1111
/// Convert a <see cref="DenseMatrix{Color}"/> to a <see cref="DenseMatrix{T}"/> of the given pixel type.
1212
/// </summary>
1313
public static DenseMatrix<TPixel> ToPixelMatrix<TPixel>(this DenseMatrix<Color> colorMatrix, Configuration configuration)
14-
where TPixel : struct, IPixel<TPixel>
14+
where TPixel : unmanaged, IPixel<TPixel>
1515
{
1616
var result = new DenseMatrix<TPixel>(colorMatrix.Columns, colorMatrix.Rows);
1717
Color.ToPixel(configuration, colorMatrix.Span, result.Span);

src/ImageSharp.Drawing/Processing/EllipticGradientBrush.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public override BrushApplicator<TPixel> CreateApplicator<TPixel>(
6262

6363
/// <inheritdoc />
6464
private sealed class RadialGradientBrushApplicator<TPixel> : GradientBrushApplicator<TPixel>
65-
where TPixel : struct, IPixel<TPixel>
65+
where TPixel : unmanaged, IPixel<TPixel>
6666
{
6767
private readonly PointF center;
6868

src/ImageSharp.Drawing/Processing/GradientBrush.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ public abstract BrushApplicator<TPixel> CreateApplicator<TPixel>(
3939
GraphicsOptions options,
4040
ImageFrame<TPixel> source,
4141
RectangleF region)
42-
where TPixel : struct, IPixel<TPixel>;
42+
where TPixel : unmanaged, IPixel<TPixel>;
4343

4444
/// <summary>
4545
/// Base class for gradient brush applicators
4646
/// </summary>
4747
internal abstract class GradientBrushApplicator<TPixel> : BrushApplicator<TPixel>
48-
where TPixel : struct, IPixel<TPixel>
48+
where TPixel : unmanaged, IPixel<TPixel>
4949
{
5050
private static readonly TPixel Transparent = Color.Transparent.ToPixel<TPixel>();
5151

0 commit comments

Comments
 (0)