Skip to content

Commit 748c3d4

Browse files
CopilotJusterZhu
andcommitted
Upgrade GeneralUpdate.Drivelution to .NET 10 instead of .NET Standard 2.0
Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com>
1 parent 9ae8985 commit 748c3d4

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/c#/DrivelutionTest/DrivelutionTest.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

src/c#/GeneralUpdate.Core/GeneralUpdate.Core.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
<RepositoryType>public</RepositoryType>
2323
<PackageTags>upgrade,update</PackageTags>
2424
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
25-
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
25+
<TargetFrameworks>netstandard2.0;net10.0</TargetFrameworks>
2626
</PropertyGroup>
27-
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
27+
<PropertyGroup Condition="'$(TargetFramework)' == 'net10.0'">
2828
<ImplicitUsings>enable</ImplicitUsings>
2929
</PropertyGroup>
3030
<ItemGroup>
@@ -93,8 +93,8 @@
9393
<Compile Include="..\GeneralUpdate.Differential\Binary\StrangeCRC.cs" Link="Common\StrangeCRC.cs" />
9494
<Compile Include="..\GeneralUpdate.Differential\DifferentialCore.cs" Link="Common\DifferentialCore.cs" />
9595
</ItemGroup>
96-
<!-- Link Drivelution files for net8.0 target only -->
97-
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
96+
<!-- Link Drivelution files for net10.0 target only -->
97+
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
9898
<Compile Include="..\GeneralUpdate.Drivelution\Abstractions\Configuration\DriverUpdateOptions.cs" Link="Common\DriverUpdateOptions.cs" />
9999
<Compile Include="..\GeneralUpdate.Drivelution\Abstractions\Events\DrivelutionLogger.cs" Link="Common\DrivelutionLogger.cs" />
100100
<Compile Include="..\GeneralUpdate.Drivelution\Abstractions\Events\IDrivelutionLogger.cs" Link="Common\IDrivelutionLogger.cs" />

src/c#/GeneralUpdate.Core/Pipeline/DrivelutionMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NET8_0_OR_GREATER
1+
#if NET10_0_OR_GREATER
22
using System;
33
using System.Collections.Generic;
44
using System.IO;

src/c#/GeneralUpdate.Core/Strategys/LinuxStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override PipelineBuilder BuildPipeline(PipelineContext context)
3333
.UseMiddlewareIf<PatchMiddleware>(_configinfo.PatchEnabled)
3434
.UseMiddleware<CompressMiddleware>()
3535
.UseMiddleware<HashMiddleware>();
36-
#if NET8_0_OR_GREATER
36+
#if NET10_0_OR_GREATER
3737
builder.UseMiddlewareIf<DrivelutionMiddleware>(_configinfo.DriveEnabled == true);
3838
#endif
3939
return builder;

src/c#/GeneralUpdate.Core/Strategys/WindowsStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected override PipelineBuilder BuildPipeline(PipelineContext context)
3535
.UseMiddlewareIf<PatchMiddleware>(_configinfo.PatchEnabled)
3636
.UseMiddleware<CompressMiddleware>()
3737
.UseMiddleware<HashMiddleware>();
38-
#if NET8_0_OR_GREATER
38+
#if NET10_0_OR_GREATER
3939
builder.UseMiddlewareIf<DrivelutionMiddleware>(_configinfo.DriveEnabled == true);
4040
#endif
4141
return builder;

src/c#/GeneralUpdate.Drivelution/GeneralUpdate.Drivelution.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<!-- Enable AOT compilation support -->

0 commit comments

Comments
 (0)