File tree 4 files changed +1869
-1097
lines changed
4 files changed +1869
-1097
lines changed Original file line number Diff line number Diff line change 2
2
using System . IO ;
3
3
using System . Linq ;
4
4
using Microsoft . AspNetCore . Hosting ;
5
- using Newtonsoft . Json ;
5
+ using System . Text . Json ;
6
6
using NuGet ;
7
7
8
8
namespace GitAttributesWeb . Utils
@@ -44,7 +44,7 @@ public string FilesJson
44
44
{
45
45
get
46
46
{
47
- return JsonConvert . SerializeObject ( this . Files ) ;
47
+ return JsonSerializer . Serialize ( this . Files ) ;
48
48
}
49
49
}
50
50
}
Original file line number Diff line number Diff line change 1
1
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 ;
6
3
7
4
namespace GitAttributesWeb . Utils
8
5
{
9
6
public class FileTemplateInfo
10
7
{
11
- [ JsonProperty ( "id" ) ]
8
+ [ JsonPropertyName ( "id" ) ]
12
9
public string Id { get ; set ; }
13
10
14
- [ JsonProperty ( "name" ) ]
11
+ [ JsonPropertyName ( "name" ) ]
15
12
public string Name { get ; set ; }
16
13
17
14
[ JsonIgnore ]
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <VersionPrefix >1.3 .0</VersionPrefix >
5
- <TargetFramework >net5 .0</TargetFramework >
4
+ <VersionPrefix >1.4 .0</VersionPrefix >
5
+ <TargetFramework >net8 .0</TargetFramework >
6
6
<AssemblyName >gitattributes</AssemblyName >
7
7
<PackageId >gitattributes</PackageId >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
11
<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" />
13
13
</ItemGroup >
14
14
15
15
<Target Name =" PrepublishScript" BeforeTargets =" PrepareForPublish" >
You can’t perform that action at this time.
0 commit comments