Skip to content

Commit ad7bdc7

Browse files
committed
Make added target framework conditional
1 parent 3db69fb commit ad7bdc7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/WinDynamicDesktop.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0-windows10.0.19041.0;net8.0</TargetFramework>
3+
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
4+
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('Windows'))">net8.0</TargetFrameworks>
45
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
56
<Platforms>AnyCPU;x86;x64;ARM64</Platforms>
67
<OutputType>WinExe</OutputType>

test/WinDynamicDesktop.Tests.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-windows10.0.19041.0;net8.0</TargetFramework>
4+
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

0 commit comments

Comments
 (0)