You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a --r2r switch on the default run command that publishes with PublishAot=false and PublishReadyToRun=true for apps needing dynamic .NET features. Track publish mode (aot|r2r) in the shared stamp file and invalidate cached output when the requested mode does not match.
Copy file name to clipboardExpand all lines: src/go/Program.cs
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -11,22 +11,23 @@
11
11
/// Runs a file-based .NET app from a .cs entrypoint.
12
12
/// </summary>
13
13
/// <param name="input">Path to an existing .cs file.</param>
14
+
/// <param name="r2r">Publish with ReadyToRun instead of native AOT; supports more dynamic .NET features while keeping most publish optimizations.</param>
14
15
/// <param name="extraArgs">Arguments before '--' are passed to 'dotnet publish'; arguments after '--' are forwarded to the published app. Without '--', all extra arguments are forwarded to the published app.
[1] <string[]> Arguments before '--' are passed to 'dotnet publish'; arguments after '--' are forwarded to the published app. Without '--', all extra arguments are forwarded to the published app.
9
9
10
+
Options:
11
+
--r2r Publish with ReadyToRun instead of native AOT; supports more dynamic .NET features while keeping most publish optimizations.
12
+
10
13
Commands:
11
14
dev Runs a file-based .NET app from a .cs entrypoint using dotnet run for fast iteration.
0 commit comments