Skip to content

Commit 9dcff55

Browse files
committed
Upgrade to .NET 8 runtime
1 parent 9c45b4d commit 9dcff55

File tree

4 files changed

+1869
-1097
lines changed

4 files changed

+1869
-1097
lines changed

src/Utils/AppData.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.IO;
33
using System.Linq;
44
using Microsoft.AspNetCore.Hosting;
5-
using Newtonsoft.Json;
5+
using System.Text.Json;
66
using NuGet;
77

88
namespace GitAttributesWeb.Utils
@@ -44,7 +44,7 @@ public string FilesJson
4444
{
4545
get
4646
{
47-
return JsonConvert.SerializeObject(this.Files);
47+
return JsonSerializer.Serialize(this.Files);
4848
}
4949
}
5050
}

src/Utils/FileTemplateInfo.cs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Newtonsoft.Json;
2+
using System.Text.Json.Serialization;
63

74
namespace GitAttributesWeb.Utils
85
{
96
public class FileTemplateInfo
107
{
11-
[JsonProperty("id")]
8+
[JsonPropertyName("id")]
129
public string Id { get; set; }
1310

14-
[JsonProperty("name")]
11+
[JsonPropertyName("name")]
1512
public string Name { get; set; }
1613

1714
[JsonIgnore]

src/gitattributes.csproj

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

33
<PropertyGroup>
4-
<VersionPrefix>1.3.0</VersionPrefix>
5-
<TargetFramework>net5.0</TargetFramework>
4+
<VersionPrefix>1.4.0</VersionPrefix>
5+
<TargetFramework>net8.0</TargetFramework>
66
<AssemblyName>gitattributes</AssemblyName>
77
<PackageId>gitattributes</PackageId>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="NWebsec.AspNetCore.Middleware" Version="3.0.0" />
12-
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.16.0" />
12+
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
1313
</ItemGroup>
1414

1515
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">

0 commit comments

Comments
 (0)