Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Commit 08c42b6

Browse files
committed
Sign the assembly with a strong name.
1 parent f927f2a commit 08c42b6

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

LineBot.snk

596 Bytes
Binary file not shown.

src/LineBot/LineBot.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,9 @@
4343
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
4444
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.1.1" />
4545
</ItemGroup>
46+
47+
<PropertyGroup>
48+
<SignAssembly>true</SignAssembly>
49+
<AssemblyOriginatorKeyFile>..\..\LineBot.snk</AssemblyOriginatorKeyFile>
50+
</PropertyGroup>
4651
</Project>

src/LineBot/Properties/InternalsVisibleTo.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@
1515
using System.Reflection;
1616
using System.Runtime.CompilerServices;
1717

18-
[assembly: InternalsVisibleTo("LineBot.Tests")]
18+
[assembly: InternalsVisibleTo("LineBot.Tests, PublicKey = " +
19+
"00240000048000009400000006020000002400005253413100040000010001006909ef8e9f192e" +
20+
"aa8026ee87798f69319d87e3ca4bf47bdb6d967fce05ec000db0ba575e47079c5b8a519bf5b609" +
21+
"a99574d9831b5dbf091e02ce85fbb99032821ff6683cc5328e4e23ee3b736b0a3026bcdf2f10e3" +
22+
"470bae2c5e6a5b5eb2a51619d61a4afed72bf1edd27372b2975c18e05ac7a54e24d1d60cb310b6" +
23+
"b46e7ad2")]

tests/LineBot.Tests/LineBot.Tests.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
<ProjectReference Include="..\..\src\LineBot\LineBot.csproj" />
5050
</ItemGroup>
5151

52+
<PropertyGroup>
53+
<SignAssembly>true</SignAssembly>
54+
<AssemblyOriginatorKeyFile>..\..\LineBot.snk</AssemblyOriginatorKeyFile>
55+
</PropertyGroup>
56+
5257
<ItemGroup>
5358
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
5459
</ItemGroup>

0 commit comments

Comments
 (0)