We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c7b2b1 commit 4853da0Copy full SHA for 4853da0
1 file changed
templates/aot/Source/MyApp.csproj
@@ -1,4 +1,8 @@
1
-<Project Sdk="Microsoft.NET.Sdk.Web">
+<Project Sdk="Microsoft.NET.Sdk.Web">
2
+
3
+ <PropertyGroup Condition="$(Configuration) == 'Release'">
4
+ <PublishAot>true</PublishAot>
5
+ </PropertyGroup>
6
7
<PropertyGroup>
8
<TargetFramework>net10.0</TargetFramework>
@@ -7,7 +11,6 @@
11
<OutputType>Exe</OutputType>
12
<NoWarn>CS1591;CA2016</NoWarn>
9
13
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10
- <PublishAot>true</PublishAot>
14
<InvariantGlobalization>true</InvariantGlobalization>
15
<GenerateSerializerContexts>true</GenerateSerializerContexts>
16
<ExportSwaggerDocs>true</ExportSwaggerDocs>
0 commit comments