File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22using System . IO ;
33using System . Linq ;
44using Microsoft . AspNetCore . Hosting ;
5- using Newtonsoft . Json ;
5+ using System . Text . Json ;
66using NuGet ;
77
88namespace 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 }
Original file line number Diff line number Diff line change 11using 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
74namespace 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 ]
Original file line number Diff line number Diff line change 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" >
You can’t perform that action at this time.
0 commit comments