@@ -15,6 +15,10 @@ It shines for:
1515- Fast iteration with smart caching (subsequent runs are near-instant when nothing changed)
1616- Easy sharing of small utilities (just a ` .cs ` file ** or** a remote ref like ` owner/repo[@ref][:path] ` )
1717
18+ ` go# ` optimizes the underlying ` dotnet publish ` and ` dotnet run ` commands for file-based apps, with smart up-to-date checks
19+ of every C# file used to build the app (including ` #include ` and ` #ref ` directives, transitively),
20+ making it optimal for quick iteration and agentic tools authoring and consumption.
21+
1822
1923## Usage
2024
@@ -84,10 +88,10 @@ To force a fresh download for a remote ref, clean its bundle first:
8488
8589``` console
8690# Clean the downloaded bundle for a remote ref (forces full download on next run)
87- dnx go clean kzu/sandbox
91+ dnx go -- clean kzu/sandbox
8892
8993# Works for refs with @ref or :path too (the bundle for the ref is deleted entirely)
90- dnx go clean kzu/sandbox@main:program.cs
94+ dnx go -- clean kzu/sandbox@main:program.cs
9195```
9296
9397Behavior follows the chosen command:
@@ -120,8 +124,8 @@ in a detached background process. Apps you run regularly are never affected.
120124
121125The main advantage of ` go# ` is ** fast unchanged re-runs** .
122126The two core scenarios for ` go# ` file-based apps are:
123- * While tweaking 👉 ` dnx go dev app.cs ` (optimized ` dotnet run app.cs ` )
124- * When stable 👉 ` dnx go app.cs ` (optimized ` dotnet publish app.cs; app[.exe] ` )
127+ * While tweaking 👉 ` dnx go -- dev app.cs ` (optimized ` dotnet run app.cs ` )
128+ * When stable 👉 ` dnx go -- app.cs ` (optimized ` dotnet publish app.cs; app[.exe] ` )
125129
126130The numbers below showcase both scenarios, comparing ` go# ` to ` dotnet run ` and
127131` dotnet publish ` for a file-based app with different combinations of ` #include ` and ` #ref ` directives.
0 commit comments