Skip to content

Commit 240f73e

Browse files
author
Tyrie Vella
committed
Update to windows-2025, upgrade to .NET 4.7.1
window-2019 agent has been deprecated and is no longer available. The newer agents don't include support for .NET Framework 4.6.1 or the Windows SDK that the native projects targeted. I tried some workarounds to install support for them as part of the action YML, but failed. Newer versions of .NET Framework are available on the agent images, but 4.7.2 and later start failing one of the functional tests. So I've updated the projects to target .NET Framework 4.7.1 and the latest Windows SDK.
1 parent 2ad18e8 commit 240f73e

27 files changed

Lines changed: 45 additions & 39 deletions

File tree

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: windows-2019
11+
runs-on: windows-2025
1212
name: Build and Unit Test
1313

1414
strategy:
@@ -66,7 +66,7 @@ jobs:
6666
path: artifacts\NuGetPackages
6767

6868
functional_test:
69-
runs-on: windows-2019
69+
runs-on: windows-2025
7070
name: Functional Tests
7171
needs: build
7272

GVFS/FastFetch/FastFetch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net461</TargetFramework>
5+
<TargetFramework>net471</TargetFramework>
66
<PlatformTarget>x64</PlatformTarget>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
</PropertyGroup>

GVFS/GVFS.Common/GVFS.Common.csproj

Lines changed: 2 additions & 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>net461</TargetFramework>
4+
<TargetFramework>net471</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
</PropertyGroup>
77

@@ -13,6 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16+
<Reference Include="System.Net.Http" />
1617
<Reference Include="System.Web" />
1718
</ItemGroup>
1819

GVFS/GVFS.FunctionalTests.LockHolder/GVFS.FunctionalTests.LockHolder.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>net461</TargetFramework>
4+
<TargetFramework>net471</TargetFramework>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
77

GVFS/GVFS.FunctionalTests/GVFS.FunctionalTests.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>net461</TargetFramework>
4+
<TargetFramework>net471</TargetFramework>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
77

GVFS/GVFS.GVFlt/GVFS.GVFlt.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>net461</TargetFramework>
4+
<TargetFramework>net471</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

GVFS/GVFS.Hooks/GVFS.Hooks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net461</TargetFramework>
5+
<TargetFramework>net471</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

GVFS/GVFS.Installers/GVFS.Installers.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net461</TargetFramework>
4+
<TargetFramework>net471</TargetFramework>
55
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
66
<LayoutPath>$(RepoOutPath)GVFS.Payload\bin\$(Configuration)\win-x64\</LayoutPath>
77
</PropertyGroup>

GVFS/GVFS.Mount/GVFS.Mount.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net461</TargetFramework>
5+
<TargetFramework>net471</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

GVFS/GVFS.NativeTests/GVFS.NativeTests.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
<ProjectGuid>{3771C555-B5C1-45E2-B8B7-2CEF1619CDC5}</ProjectGuid>
1818
<Keyword>Win32Proj</Keyword>
1919
<RootNamespace>GVFSNativeTests</RootNamespace>
20-
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
20+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
2121
</PropertyGroup>
2222
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2323
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
2424
<ConfigurationType>DynamicLibrary</ConfigurationType>
2525
<UseDebugLibraries>true</UseDebugLibraries>
26-
<PlatformToolset>v142</PlatformToolset>
26+
<PlatformToolset>v143</PlatformToolset>
2727
<CharacterSet>NotSet</CharacterSet>
2828
</PropertyGroup>
2929
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
3030
<ConfigurationType>DynamicLibrary</ConfigurationType>
3131
<UseDebugLibraries>false</UseDebugLibraries>
32-
<PlatformToolset>v142</PlatformToolset>
32+
<PlatformToolset>v143</PlatformToolset>
3333
<WholeProgramOptimization>true</WholeProgramOptimization>
3434
<CharacterSet>NotSet</CharacterSet>
3535
</PropertyGroup>

0 commit comments

Comments
 (0)