Skip to content

Commit c922478

Browse files
committed
upgrade to .net 6
1 parent 519b861 commit c922478

File tree

5 files changed

+10
-24
lines changed

5 files changed

+10
-24
lines changed

src/SocketIOClient.Sample/Program.cs

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,18 @@ class Program
1111
{
1212
static async Task Main(string[] args)
1313
{
14-
//Console.OutputEncoding = Encoding.UTF8;
15-
//Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
14+
// Show Debug and Trace messages
15+
Console.OutputEncoding = Encoding.UTF8;
16+
Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
1617

17-
18-
//var uri = new Uri("http://localhost:11003/nsp");
19-
20-
//var socket = new SocketIO(uri, new SocketIOOptions
21-
//{
22-
// Query = new Dictionary<string, string>
23-
// {
24-
// {"token", "V3NSP" }
25-
// },
26-
// //EIO = 3,
27-
// Transport = Transport.TransportProtocol.Polling
28-
//});
29-
30-
var uri = new Uri("http://localhost:11002/nsp");
18+
var uri = new Uri("http://localhost:11003/");
3119

3220
var socket = new SocketIO(uri, new SocketIOOptions
3321
{
3422
Query = new Dictionary<string, string>
3523
{
36-
{"token", "V2" }
24+
{"token", "V3" }
3725
},
38-
EIO = 3,
39-
Transport = Transport.TransportProtocol.Polling
4026
});
4127

4228
socket.OnConnected += Socket_OnConnected;

src/SocketIOClient.Sample/SocketIOClient.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
</PropertyGroup>
88

src/SocketIOClient.Test/SocketIOClient.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

src/SocketIOClient.UnitTest/SocketIOClient.UnitTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

src/socket.io-client-csharp.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29102.190
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SocketIOClient.Test", "SocketIOClient.Test\SocketIOClient.Test.csproj", "{CD4458DA-B220-4B01-8E40-F75869387985}"
77
EndProject

0 commit comments

Comments
 (0)