Skip to content

Commit 7d79f5e

Browse files
committed
Output strong-named assemblies
Otherwise we might get some errors in the consumers of these libs, such as: Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.IO.FileLoadException: Could not load file or assembly 'JsonRpcSharp.RpcClient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) at Nethereum.Web3.Web3.IntialiseDefaultRpcClient(String url, ILog log, AuthenticationHeaderValue authenticationHeader) at Nethereum.Web3.Web3..ctor(String url, ILog log, AuthenticationHeaderValue authenticationHeader) at GWallet.Backend.Ether.SomeWeb3..ctor(String url) in d:\a\geewallet\geewallet\src\GWallet.Backend\Ether\EtherServer.fs:line 24
1 parent 3383656 commit 7d79f5e

File tree

9 files changed

+39
-0
lines changed

9 files changed

+39
-0
lines changed

JsonRpcSharp.sln

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Microsoft Visual Studio Solution File, Format Version 12.00
44
VisualStudioVersion = 15.0.27130.2036
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{962EC435-6130-4B75-BAC1-12323B067443}"
7+
ProjectSection(SolutionItems) = preProject
8+
src\AssemblyInfo.cs = src\AssemblyInfo.cs
9+
src\AssemblyInfo.fs = src\AssemblyInfo.fs
10+
EndProjectSection
711
EndProject
812
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JsonRpcSharp.Client", "src\JsonRpcSharp.Client\JsonRpcSharp.Client.csproj", "{84A6BAA7-32B3-4D99-9280-87023BFF0A5B}"
913
EndProject

nblockchain.snk

596 Bytes
Binary file not shown.

src/AssemblyInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+

2+
using System.Reflection;
3+
4+
[assembly: AssemblyKeyFile("../../nblockchain.snk")]

src/AssemblyInfo.fs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace JsonRpcSharp.TcpClient
2+
3+
open System.Reflection
4+
5+
[<assembly: AssemblyKeyFile("../../nblockchain.snk")>]
6+
7+
do
8+
()

src/JsonRpcSharp.Client/JsonRpcSharp.Client.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313
<PackageReference Include="Common.Logging.Core" Version="3.4.1"/>
1414
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
1515
</ItemGroup>
16+
<ItemGroup>
17+
<Compile Include="..\AssemblyInfo.cs">
18+
<Link>AssemblyInfo.cs</Link>
19+
</Compile>
20+
</ItemGroup>
1621
</Project>

src/JsonRpcSharp.IpcClient/JsonRpcSharp.IpcClient.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@
2424
<ItemGroup Condition=" '$(TargetFramework)' != 'netstandard2.0'">
2525
<PackageReference Include="System.Net.Sockets" Version="4.3.0" />
2626
</ItemGroup>
27+
<ItemGroup>
28+
<Compile Include="..\AssemblyInfo.cs">
29+
<Link>AssemblyInfo.cs</Link>
30+
</Compile>
31+
</ItemGroup>
2732
</Project>

src/JsonRpcSharp.RpcClient/JsonRpcSharp.RpcClient.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@
1515
<ItemGroup>
1616
<PackageReference Include="System.Net.Http" Version="4.3.3" Condition="'$(TargetFramework)' == 'net46'"/>
1717
</ItemGroup>
18+
<ItemGroup>
19+
<Compile Include="..\AssemblyInfo.cs">
20+
<Link>AssemblyInfo.cs</Link>
21+
</Compile>
22+
</ItemGroup>
1823
</Project>

src/JsonRpcSharp.TcpClient/JsonRpcSharp.TcpClient.fsproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8+
<Compile Include="..\AssemblyInfo.fs">
9+
<Link>AssemblyInfo.fs</Link>
10+
</Compile>
811
<Compile Include="TcpClient.fs" />
912
</ItemGroup>
1013

src/JsonRpcSharp.WebSocketClient/JsonRpcSharp.WebSocketClient.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313
<ProjectReference Include="..\JsonRpcSharp.Client\JsonRpcSharp.Client.csproj" />
1414
<PackageReference Include="System.Net.WebSockets.Client" Version="4.3.2" />
1515
</ItemGroup>
16+
<ItemGroup>
17+
<Compile Include="..\AssemblyInfo.cs">
18+
<Link>AssemblyInfo.cs</Link>
19+
</Compile>
20+
</ItemGroup>
1621
</Project>

0 commit comments

Comments
 (0)