Skip to content

Commit 7f18414

Browse files
authoredJan 26, 2023
feat: added support to .net 7 (#178)
1 parent d1c6e23 commit 7f18414

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed
 

‎FireSharp.Core/FireSharp.Core.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
<AssemblyName>FireSharp.Core</AssemblyName>
66
<RootNamespace>FireSharp.Core</RootNamespace>
7-
<Version>5.0.0</Version>
7+
<Version>7.0.0</Version>
88
</PropertyGroup>
99

1010
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
16+
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
1717
</ItemGroup>
1818

1919
</Project>

‎FireSharp.Core/Response/EventStreamResponse.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ await Task.Factory.StartNew(async () =>
6464
{
6565
token.ThrowIfCancellationRequested();
6666

67-
string? read = await sr.ReadLineAsync();
67+
var read = await sr.ReadLineAsync(token);
68+
if (read == null)
69+
continue;
6870

6971
Debug.WriteLine(read);
7072

@@ -109,7 +111,7 @@ private void Update(string eventName, string p)
109111
reader.DateParseHandling = DateParseHandling.None;
110112
ReadToNamedPropertyValue(reader, "path");
111113
reader.Read();
112-
string? path = reader.Value.ToString();
114+
var path = reader.Value?.ToString();
113115

114116
if (eventName == "put")
115117
{
@@ -131,7 +133,7 @@ private JsonReader ReadToNamedPropertyValue(JsonReader reader, string property)
131133
// skip the property
132134
}
133135

134-
string? prop = reader.Value.ToString();
136+
var prop = reader.Value?.ToString();
135137
if (property != prop)
136138
{
137139
throw new InvalidOperationException("Error parsing response. Expected json property named: " + property);

‎FireSharp.Serialization.JsonNet.Core/FireSharp.Serialization.JsonNet.Core.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

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

77
<ItemGroup>
8-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
8+
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
99
</ItemGroup>
1010

1111
<ItemGroup>

‎FireSharp.Serialization.ServiceStack.Core/FireSharp.Serialization.ServiceStack.Core.csproj

+1-1
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>net7.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

‎FireSharp.Test.Console.Core/FireSharp.Test.Console.Core.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

‎FireSharp.Tests.Core/FireSharp.Tests.Core.csproj

+1-1
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>net7.0</TargetFramework>
55

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

0 commit comments

Comments
 (0)