Skip to content

Commit 4853da0

Browse files
committed
enable aot conditionally
1 parent 5c7b2b1 commit 4853da0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

templates/aot/Source/MyApp.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup Condition="$(Configuration) == 'Release'">
4+
<PublishAot>true</PublishAot>
5+
</PropertyGroup>
26

37
<PropertyGroup>
48
<TargetFramework>net10.0</TargetFramework>
@@ -7,7 +11,6 @@
711
<OutputType>Exe</OutputType>
812
<NoWarn>CS1591;CA2016</NoWarn>
913
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10-
<PublishAot>true</PublishAot>
1114
<InvariantGlobalization>true</InvariantGlobalization>
1215
<GenerateSerializerContexts>true</GenerateSerializerContexts>
1316
<ExportSwaggerDocs>true</ExportSwaggerDocs>

0 commit comments

Comments
 (0)