Skip to content

Commit

Permalink
Strong Name Signing (#15)
Browse files Browse the repository at this point in the history
* Added sign assembly attributes and key file for strong named assemblies. (#14)

* Update snk file
  • Loading branch information
Morcatko authored Dec 13, 2018
1 parent 9ea592c commit 390b977
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions JsonMergePatch.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{ED9B14F4-1239-4248-AE8D-5E1BFE968B96}"
ProjectSection(SolutionItems) = preProject
dotnet-pack.ps1 = dotnet-pack.ps1
signing.snk = signing.snk
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{8B21863B-36B9-45A6-8D60-EC193239552B}"
Expand Down
Binary file added signing.snk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<AssemblyName>Morcatko.AspNetCore.JsonMergePatch</AssemblyName>
<VersionSuffix Condition=" '$(VersionSuffix)'=='' ">0</VersionSuffix>

<PackageId>Morcatko.AspNetCore.JsonMergePatch</PackageId>
<PackageVersion>2.0.$(VersionSuffix)</PackageVersion>
Expand All @@ -18,11 +19,13 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\signing.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Formatters.Json" Version="2.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("a8bb3010-1e76-4c1e-8d99-3ee46341ed42")]
[assembly:InternalsVisibleTo("Morcatko.AspNetCore.JsonMergePatch.Test")]
[assembly: InternalsVisibleTo("Morcatko.AspNetCore.JsonMergePatch.Test, PublicKey=e2aa96d34211afc0")]
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>

<IsPackable>false</IsPackable>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\signing.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="2.0.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 390b977

Please sign in to comment.