Skip to content

Commit 009133d

Browse files
committed
Fix for .NET 9 Sdk
1 parent c53e177 commit 009133d

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

Directory.Build.targets

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<AssemblySearchPaths Condition=" '$(LibDirFramework)' != '' ">$(LibDir)$(LibDirFramework)\;$(AssemblySearchPaths)</AssemblySearchPaths>
2929
</PropertyGroup>
3030

31-
<PropertyGroup Condition= " '$(TargetFramework)' != 'net472' ">
31+
<PropertyGroup Condition=" '$(TargetFramework)' != 'net472' ">
3232
<DefaultItemExcludes>$(DefaultItemExcludes);**/*net472*</DefaultItemExcludes>
3333
</PropertyGroup>
34-
<PropertyGroup Condition= " !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">
34+
<PropertyGroup Condition=" !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">
3535
<DefaultItemExcludes>$(DefaultItemExcludes);**/*net8.0*</DefaultItemExcludes>
3636
</PropertyGroup>
3737

@@ -74,6 +74,12 @@
7474
</Reference>
7575
</ItemGroup>
7676

77+
<PropertyGroup>
78+
<!-- Fix .NET 8 Sdk RuntimeIdentifiers to align with .NET 9 Sdk -->
79+
<RuntimeIdentifier Condition=" '$(RuntimeIdentifier)'=='win7-x86'">win-x86</RuntimeIdentifier>
80+
<RuntimeIdentifier Condition=" '$(RuntimeIdentifier)'=='win7-x64'">win-x64</RuntimeIdentifier>
81+
</PropertyGroup>
82+
7783
<PropertyGroup Condition=" '$(NETCoreSdkVersion)'!='' ">
7884
<!-- Treat SDK 6.0.301 as last known to work. -->
7985
<NETSDKBeforeFeature>$([MSBuild]::VersionLessThanOrEquals('$(NETCoreSdkVersion)', '6.0.301'))</NETSDKBeforeFeature>

Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<PackageReference Update="ExceptionReporter " Version="2.4.2" />
2222
<PackageReference Update="IKVM" Version="8.11.0-dev.50" />
2323
<PackageReference Update="Microsoft.Build.Utilities.Core" Version="17.1.0" />
24+
<PackageReference Update="Microsoft.CSharp" Version="4.7.0" />
2425
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.1.0" />
2526
<PackageReference Update="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.2" />
2627
<PackageReference Update="Microsoft.Windows.CsWin32" Version="0.3.106" />

cli/src/main/csharp/duck.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net472</TargetFramework>
66
<Platforms>x64</Platforms>
7-
<RuntimeIdentifiers>win7-x64</RuntimeIdentifiers>
7+
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
88
</PropertyGroup>
99

1010
<ItemGroup>

windows/src/main/csharp/Cyberduck.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
55
<TargetFramework>net472</TargetFramework>
6-
<RuntimeIdentifiers>win7-x64</RuntimeIdentifiers>
6+
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
77
<Platforms>x64</Platforms>
88
<UseWindowsForms>true</UseWindowsForms>
99
<UseWPF>true</UseWPF>

0 commit comments

Comments
 (0)