Skip to content

Commit 20cf1f9

Browse files
Update build property conditions
1 parent 307e825 commit 20cf1f9

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

OpenMcdf.Benchmarks/OpenMcdf.Benchmarks.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-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) == 'false'">net8.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
55
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">net8.0-windows</TargetFrameworks>
66
<OutputType>Exe</OutputType>
77
</PropertyGroup>

OpenMcdf.Ole/OpenMcdf.Ole.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
5-
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsTrimmable>
6-
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
8+
<IsTrimmable>true</IsTrimmable>
9+
<IsAotCompatible>true</IsAotCompatible>
710
</PropertyGroup>
811

912
<PropertyGroup>

OpenMcdf/OpenMcdf.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
5-
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsTrimmable>
6-
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
8+
<IsTrimmable>true</IsTrimmable>
9+
<IsAotCompatible>true</IsAotCompatible>
710
</PropertyGroup>
811

912
<PropertyGroup>

0 commit comments

Comments
 (0)