Setup Dotnet Gitignore
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Create or refresh the root .gitignore of a plain .NET repository — a class library, a service, or a command-line tool
such as the layout produced by Setup Dotnet Cli. The template is a trimmed, house-style version
of what such a solution produces, not GitHub’s 400-line Visual Studio file. It never overwrites an existing
.gitignore without showing a diff and getting approval.
Purpose
iru-setup-dotnet-gitignore ignores .NET build output ([Bb]in/, [Oo]bj/, the .NET 8+ artifacts/ layout holding
Native AOT publish output, NuGet tool packages, man page and completions, and publish/), Visual Studio/Rider/VS Code
user state, test and coverage output (TestResults/, .trx, coverage.xml, coveragereport/), analyzer SARIF
logs, NuGet packages, signing material (.pfx, .p12, .key — but not .snk), the Antora build output, OS files
and the repository-wide .integration-test.lock/. A DocFX section covering the docfx.json metadata dest and site
output folders is added only when a docfx.json exists. For a command-line tool with a Terminal.Gui terminal UI
(a *.csproj references Terminal.Gui, or a root .ui-quality.yml exists) a terminal-UI section ignores
.ui-screenshots/, the directory the UI tests write their text captures to (see
Building user interfaces); .ui-quality.yml itself is configuration and is
never ignored.
It never ignores the generated-but-committed docs/modules/ROOT/pages/cli-reference.adoc, and checks the draft with
git check-ignore against build props, solution, .editorconfig, DocFX sources and project files. It stops and points
to Setup Windows Gitignore for Windows desktop apps (WPF, WinUI 3, Windows Forms, MSIX). When
.gitignore exists it announces an update, shows a diff and asks Update / Keep as is / Replace.
Plugin
Shipped by the iru-dotnet plugin of the ai-catalog marketplace (install with /plugin install iru-dotnet@ai-catalog; see Plugins).
Invocation
/iru-setup-dotnet-gitignore
Optionally with an args block of key: value lines (see below) for scripted runs.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
No |
|
Detected from the root |
|
No |
|
|
Any other key forwarded by Setup CLI Repository (such as language, bin-name or ui) is ignored and named in the report.
Outputs
-
A root
.gitignore— created, updated (merged, keeping hand-added lines), replaced with the template, or left untouched when kept as is. -
A report stating whether the run was from scratch or an update, the action taken (created / updated / replaced / kept as is, and its source), which conditional sections (DocFX, terminal-UI captures) were included or skipped, the result of the
git check-ignoresafety check, and any tracked file under a newly ignored path with thegit rm -r --cachedit needs. -
Explicit warnings: review the file before committing; writing
.gitignorenever untracks committed files (rotate any committed certificate or key); never commit*.pfxor NuGet API keys.
Execution flow
Dependencies
Invokes
None — iru-setup-dotnet-gitignore is a leaf skill; it only reads solution, project and DocFX files, runs read-only git commands, and writes .gitignore. It only points to Setup Windows Gitignore for Windows desktop apps, without calling it.
Invoked by
-
Setup CLI Repository — Step 6, root .gitignore for the
dotnetlanguage, via theiru-isolated-skill-executoragent.
Also named as a follow-up step by Setup Dotnet Cli when run standalone.
Source
SKILL.md on GitHub — the file this page was generated from.