Skip to content
framework30 aktive RegelnGeprüft am 2026-09-30

Dotnet .gitignore Vorlage

Standard Dotnet gitignore template from upstream github/gitignore collection. Deterministisch mit Mustern des offiziellen GitHub-Repositorys zusammengeführt, um dein Projekt sauber von Abhängigkeitsordnern, Build-Artefakten und lokalen Umgebungsvariablen zu halten.

Interaktiver Stack-Generator

Im vollständigen Generator öffnen
Search for templates
Schnell hinzufügen:
Ausgewählt1
Dotnet
Ausgewählte Vorlagen (1)
.gitignore
30 Regeln
### Dotnet ###
## A streamlined .gitignore for modern .NET projects
## including temporary files, build results, and
## files generated by popular .NET tools. If you are
## developing with Visual Studio, the VS .gitignore
## https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
## has more thorough IDE-specific entries.
##
## Get latest from https://github.com/github/gitignore/blob/main/Dotnet.gitignore
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# dotenv environment variables file
.env
# Others
~$*
*~
CodeCoverage/
# MSBuild Binary and Structured Log
*.binlog
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
59 Zeilen•UTF-8
Deterministische Pipeline

Quellcode: Dotnet .gitignore

Crawlbare offizielle Upstream-Vorlage
dotnet.gitignore•58 lines•UTF-8
## A streamlined .gitignore for modern .NET projects
## including temporary files, build results, and
## files generated by popular .NET tools. If you are
## developing with Visual Studio, the VS .gitignore
## https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
## has more thorough IDE-specific entries.
##
## Get latest from https://github.com/github/gitignore/blob/main/Dotnet.gitignore
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# dotenv environment variables file
.env
# Others
~$*
*~
CodeCoverage/
# MSBuild Binary and Structured Log
*.binlog
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml

Wichtige Ausschlussmuster im Überblick

Build-Artefakte & Kompilate

Ignoriert kompilierte Binärdateien, Zwischendateien und Build-Ausgabeordner aus dem Kompiliervorgang.

*.binlog

Umgebungsvariablen & Zugangsdaten

Verhindert das versehentliche Hochladen sensibler Zugangsdaten, API-Schlüssel und lokaler .env-Dateien.

.env

Caches & temporäre Dateien

Ignoriert Compiler-Caches, Test-Coverage-Daten und temporäre Arbeitsdateien, um das Repository schlank zu halten.

CodeCoverage/

Herkunft & Lizenzprüfung

Lizenz:: CC0-1.0

Platziere diese Datei unter dem Namen .gitignore im Stammverzeichnis deines Projekts. Die Änderungen greifen sofort für alle neuen und nicht getrackten Dateien.