Skip to content

Commit fff595a

Browse files
committed
升级.NET9、升级有漏洞风险的nuget
1 parent 78bb7e2 commit fff595a

File tree

17 files changed

+39
-177
lines changed

17 files changed

+39
-177
lines changed

src/c#/GeneralUpdate.Bowl.Test/GeneralUpdate.Bowl.Test.csproj

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/c#/GeneralUpdate.Bowl.Test/UnitTest1.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/c#/GeneralUpdate.Client.Test/GeneralUpdate.Client.Test.csproj

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/c#/GeneralUpdate.Client.Test/UnitTest1.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/c#/GeneralUpdate.Client/GeneralUpdate.Client.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<ApplicationManifest></ApplicationManifest>
9-
<PublishAot>true</PublishAot>
10-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
9+
<!--<PublishAot>true</PublishAot>
10+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>-->
1111
</PropertyGroup>
1212

13+
<ItemGroup>
14+
<PackageReference Include="SharpCompress" Version="0.38.0" />
15+
<PackageReference Include="System.Net.Http" Version="4.3.4" />
16+
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
17+
</ItemGroup>
18+
1319
<ItemGroup>
1420
<ProjectReference Include="..\GeneralUpdate.ClientCore\GeneralUpdate.ClientCore.csproj" />
1521
</ItemGroup>

src/c#/GeneralUpdate.ClientCore/GeneralUpdate.ClientCore.csproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.0"/>
22-
<PackageReference Include="System.Collections.Immutable" Version="9.0.0"/>
23-
<PackageReference Include="System.Net.Requests" Version="4.3.0"/>
21+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.0" />
22+
<PackageReference Include="System.Collections.Immutable" Version="9.0.0" />
23+
<PackageReference Include="System.Net.Http" Version="4.3.4" />
24+
<PackageReference Include="System.Net.Requests" Version="4.3.0" />
2425
</ItemGroup>
2526

2627
<ItemGroup>
27-
<ProjectReference Include="..\GeneralUpdate.Common\GeneralUpdate.Common.csproj"/>
28-
<ProjectReference Include="..\GeneralUpdate.Differential\GeneralUpdate.Differential.csproj"/>
29-
<ProjectReference Include="..\GeneralUpdate.Zip\GeneralUpdate.Zip.csproj"/>
28+
<ProjectReference Include="..\GeneralUpdate.Common\GeneralUpdate.Common.csproj" />
29+
<ProjectReference Include="..\GeneralUpdate.Differential\GeneralUpdate.Differential.csproj" />
30+
<ProjectReference Include="..\GeneralUpdate.Zip\GeneralUpdate.Zip.csproj" />
3031
</ItemGroup>
3132

3233
<ItemGroup>

src/c#/GeneralUpdate.Differential.Test/GeneralUpdate.Differential.Test.csproj

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/c#/GeneralUpdate.Differential.Test/UnitTest1.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/c#/GeneralUpdate.Maui.OSS/GeneralUpdate.Maui.OSS.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
3+
<TargetFrameworks>net9.0;net9.0-android</TargetFrameworks>
44
<UseMaui>true</UseMaui>
55
<SingleProject>true</SingleProject>
66
<ImplicitUsings>enable</ImplicitUsings>
@@ -18,4 +18,10 @@
1818
<ItemGroup>
1919
<ProjectReference Include="..\GeneralUpdate.Common\GeneralUpdate.Common.csproj" />
2020
</ItemGroup>
21+
<ItemGroup>
22+
<PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="9.0.10" />
23+
</ItemGroup>
24+
<ItemGroup>
25+
<PackageReference Update="Microsoft.Maui.Controls" Version="9.0.10" />
26+
</ItemGroup>
2127
</Project>

src/c#/GeneralUpdate.OSSClient/GeneralUpdate.OSSClient.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0-android</TargetFrameworks>
4+
<TargetFrameworks>net9.0-android</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<RootNamespace>GeneralUpdate.OSSClient</RootNamespace>
77
<UseMaui>true</UseMaui>
@@ -78,7 +78,7 @@
7878
</ItemGroup>
7979

8080
<ItemGroup>
81-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
81+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
8282
</ItemGroup>
8383

8484
<ItemGroup>
@@ -100,4 +100,12 @@
100100
</None>
101101
</ItemGroup>
102102

103+
<ItemGroup>
104+
<PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="9.0.10" />
105+
</ItemGroup>
106+
107+
<ItemGroup>
108+
<PackageReference Update="Microsoft.Maui.Controls" Version="9.0.10" />
109+
</ItemGroup>
110+
103111
</Project>

0 commit comments

Comments
 (0)