Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41e5f6d

Browse files
committed
Strong-name sign the assembly
This including checking in the (unprotected) private key so that the library can be built and replaced by anyone, as it was before it was strong-name signed.
1 parent 3b0f7e1 commit 41e5f6d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
3939
<DocumentationFile>bin\Release\LibGit2Sharp.xml</DocumentationFile>
4040
</PropertyGroup>
41+
<PropertyGroup>
42+
<SignAssembly>true</SignAssembly>
43+
</PropertyGroup>
44+
<PropertyGroup>
45+
<AssemblyOriginatorKeyFile>opensource.snk</AssemblyOriginatorKeyFile>
46+
</PropertyGroup>
4147
<ItemGroup>
4248
<Reference Include="System" />
4349
<Reference Include="System.Core" />
@@ -349,6 +355,9 @@
349355
<ItemGroup>
350356
<EmbeddedResource Include="libgit2sharp_hash.txt" />
351357
</ItemGroup>
358+
<ItemGroup>
359+
<None Include="opensource.snk" />
360+
</ItemGroup>
352361
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
353362
<Import Project="UniqueIdentifier.targets" />
354363
<PropertyGroup>

LibGit2Sharp/opensource.snk

596 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)