Skip to content

Commit c362391

Browse files
committed
Comment
1 parent 1bd833e commit c362391

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/FunctionalTests/Linker/LinkerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ private static async Task PublishAppAsync(string path, string outputPath, bool p
133133

134134
try
135135
{
136+
// The AppPublishAot parameter is used to tell the compiler to publish as AOT.
137+
// AppPublishAot is used instead of PublishAot because dependency projects have non-AOT targets. Setting "PublishAot=true" causes build errors.
136138
process.Start("dotnet", $"publish {resolvedPath} -r {GetRuntimeIdentifier()} -c Release -o {outputPath} -p:AppPublishAot={publishAot} --self-contained");
137139
await process.WaitForExitAsync().TimeoutAfter(Timeout);
138140
}

0 commit comments

Comments
 (0)