From 6e94a93c7007d5e7721bfd30ca03798bbfd139d1 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 23 Nov 2026 11:07:50 +0100 Subject: [PATCH] Added the dashes after dotnet run to every call of the build script (#1222) --- .github/pull_request_template.md | 2 +- .github/workflows/build-and-release.yml | 2 +- AGENTS.md | 14 ++++++------- CONTRIBUTING.md | 2 +- app/.run/Collect I18N content.run.xml | 2 +- app/AGENTS.md | 2 +- app/Build/AGENTS.md | 2 +- app/Build/Commands/VerifyCommand.cs | 4 ++-- app/Build/Program.cs | 2 +- app/MindWork AI Studio/Models/AGENTS.md | 2 +- app/TrimSmokeTest/TrimSmokeTest.csproj | 2 +- documentation/Build.md | 28 ++++++++++++++----------- documentation/Models.md | 6 +++--- documentation/Tools.md | 2 +- runtime/src/pdfium.rs | 4 ++-- 15 files changed, 40 insertions(+), 36 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 485b3f375..d5a48634b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -19,7 +19,7 @@ once it is done: that is our signal to take over. The automated check waits unti ## How did you test it? - + ## Wiki diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 51253bb5d..c0925c14e 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -908,7 +908,7 @@ jobs: - name: Run the quality gate run: | cd "app/Build" - dotnet run verify + dotnet run -- verify build_main: name: Build app (${{ matrix.dotnet_runtime }}) diff --git a/AGENTS.md b/AGENTS.md index bd8069735..121b3fcd4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -99,7 +99,7 @@ MindWork AI Studio is a cross-platform desktop application for interacting with ### Build ```bash cd app/Build -dotnet run build +dotnet run -- build ``` This builds the .NET app as a Tauri "sidecar" binary, which is required even for development. @@ -109,7 +109,7 @@ instead; see "Cloud sessions" below. Agents must not start builds through their own shell: agent shells run sandboxed, and `.NET` builds hit a known sandbox issue there, typically surfacing as `CSSM_ModuleLoad()` or other sandbox-related -failures (for reference: https://github.com/openai/codex/issues/4915). This applies to `dotnet run build`, +failures (for reference: https://github.com/openai/codex/issues/4915). This applies to `dotnet run -- build`, `dotnet build`, `cargo build`, and similar commands. Instead, use the JetBrains IDE MCP servers. They execute in the IDE process, which runs outside the @@ -130,8 +130,8 @@ triggering a new build. terminal, because they are more than a solution build: ``` -mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run build" -mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run collect-i18n" +mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run -- build" +mcp__rider__execute_terminal_command command: "cd app/Build && dotnet run -- collect-i18n" ``` **Rust builds** work the same way through the matching `rustrover` tools. @@ -140,7 +140,7 @@ Notes: - The IDE may ask the user to confirm a terminal command. Wait for the result instead of retrying the command in the agent shell. - When the IDE is not running or its MCP server is unavailable, fall back to asking the user to run - `cd app/Build && dotnet run build` locally, and wait for their feedback before diagnosing issues or + `cd app/Build && dotnet run -- build` locally, and wait for their feedback before diagnosing issues or making follow-up changes. - Treat the build output, error messages, or success confirmation as the source of truth for further troubleshooting, no matter whether it came from the MCP server or from the user. @@ -169,12 +169,12 @@ again yourself when `metadata.txt` changes during the session, e.g., after a mer **Building and testing** happen in the shell: -- The quality gate, the same as in the pipeline: `cd app/Build && dotnet run verify`. It compiles both +- The quality gate, the same as in the pipeline: `cd app/Build && dotnet run -- verify`. It compiles both the .NET app and the Rust runtime on its way. Narrower checks: `dotnet build "app/MindWork AI Studio.slnx"`, `dotnet test` in `app/Tests`, and `cargo test` or `cargo clippy --all-targets -- -D warnings` in `runtime/`. - A cold build of the Rust runtime takes several minutes: run the gate and cargo in the background, or give them the longest timeout available. -- Skip `dotnet run build`: it needs the Tauri CLI, which is not installed, and the app it produces +- Skip `dotnet run -- build`: it needs the Tauri CLI, which is not installed, and the app it produces cannot start without a display. **Committing and pushing** is your job here: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d19235f8f..bc1c64f55 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,7 +27,7 @@ As of October 2026, we recommend one of these setups, or a newer model of the sa The repository contains an [AGENTS.md](AGENTS.md), which your agent reads on its own. It describes the architecture, our conventions, and how to build and test AI Studio, and it is binding for every agent working on the code. -Before you open a pull request, run [the quality gate](documentation/Build.md#the-quality-gate) with `dotnet run verify`, then [run the app locally](documentation/Build.md#run-the-app-locally-with-all-your-changes) and try out what you changed. +Before you open a pull request, run [the quality gate](documentation/Build.md#the-quality-gate) with `dotnet run -- verify`, then [run the app locally](documentation/Build.md#run-the-app-locally-with-all-your-changes) and try out what you changed. Contributions written without AI assistance are welcome as well, as long as they meet the same standard. diff --git a/app/.run/Collect I18N content.run.xml b/app/.run/Collect I18N content.run.xml index 837832a3d..fd938ca94 100644 --- a/app/.run/Collect I18N content.run.xml +++ b/app/.run/Collect I18N content.run.xml @@ -1,6 +1,6 @@ -