Skip to content

Commit 7ea7cc6

Browse files
committed
Fixed issue with AOT build settings.
1 parent 4575659 commit 7ea7cc6

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/HotChocolate/Core/src/Abstractions/HotChocolate.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<PropertyGroup>
11-
<EnableTrimAnalyzer Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</EnableTrimAnalyzer>
11+
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
1212
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1313
</PropertyGroup>
1414

src/HotChocolate/Core/src/Types.Shared/HotChocolate.Types.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Description>Contains shared helper methods.</Description>
88
</PropertyGroup>
99

10-
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
10+
<PropertyGroup>
1111
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
1212
<IsTrimmable>true</IsTrimmable>
1313
</PropertyGroup>

src/HotChocolate/Fusion-vnext/src/Fusion.CommandLine/HotChocolate.Fusion.CommandLine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<AssemblyName>fusion</AssemblyName>
55
<OutputType>Exe</OutputType>
66
<PackAsTool>true</PackAsTool>
7-
<PublishAot>true</PublishAot>
7+
<PublishAot>false</PublishAot>
88
<RootNamespace>HotChocolate.Fusion</RootNamespace>
99
<ToolCommandName>fusion</ToolCommandName>
1010
</PropertyGroup>

src/HotChocolate/Language/src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<TargetFrameworks>$(ExtendedTargetFrameworks)</TargetFrameworks>
77
</PropertyGroup>
88

9-
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
9+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) OR $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))">
1010
<IsAotCompatible>true</IsAotCompatible>
1111
</PropertyGroup>
1212

src/HotChocolate/Primitives/src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<NoWarn>$(NoWarn);CA1812</NoWarn>
77
</PropertyGroup>
88

9-
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
9+
<PropertyGroup>
1010
<IsAotCompatible>true</IsAotCompatible>
1111
</PropertyGroup>
1212

src/HotChocolate/Utilities/src/Utilities/HotChocolate.Utilities.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Description>Contains internal helper classes and utilities used by the Hot Chocolate GraphQL type system and the GraphQL query execution engine.</Description>
88
</PropertyGroup>
99

10-
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
10+
<PropertyGroup>
1111
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
1212
</PropertyGroup>
1313

0 commit comments

Comments
 (0)