Skip to content

Commit 0b64de1

Browse files
committed
chore: strong name for System.Net.WebSockets.Client.Managed
[skip ci]
1 parent cf707b3 commit 0b64de1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

src/SocketIOClient.Windows7/SocketIOClient.Windows7.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<Version>2.2.4</Version>
6+
<Version>2.2.4.1</Version>
77
<Description>socket.io-client implemention for .NET</Description>
88
<PackageLicenseExpression>MIT</PackageLicenseExpression>
99
<PackageProjectUrl>https://github.com/doghappy/socket.io-client-csharp</PackageProjectUrl>
@@ -67,8 +67,13 @@
6767
</ItemGroup>
6868

6969
<ItemGroup>
70-
<PackageReference Include="System.Net.WebSockets.Client.Managed" Version="1.0.22" />
7170
<PackageReference Include="System.Text.Json" Version="5.0.2" />
7271
</ItemGroup>
7372

73+
<ItemGroup>
74+
<Reference Include="System.Net.WebSockets.Client.Managed">
75+
<HintPath>lib\System.Net.WebSockets.Client.Managed.dll</HintPath>
76+
</Reference>
77+
</ItemGroup>
78+
7479
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Why not add this dependency from NuGet?
2+
3+
The System.Net.WebSockets.Client.Managed assembly in NuGet is not signed, it is a weakly named assembly.
4+
5+
So, I generated the il file based on the assembly in NuGet, and finally signed it, and got this strong-named assembly.
6+
7+
https://stackoverflow.com/a/331555/7771913
Binary file not shown.

0 commit comments

Comments
 (0)