framework30 個の有効ルール2026-09-30 検証済み
Dotnet .gitignore テンプレート
Standard Dotnet gitignore template from upstream github/gitignore collection. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。
スタック統合ジェネレーター
フルジェネレーターで開く/
Search for templates
クイック追加:
選択中1
Dotnet
選択されたテンプレート (1)
Dotnet
framework
Standard Dotnet gitignore template from upstream github/gitignore collection
#dotnet
.gitignore
30 ルール•1 テンプレート
### 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 Coreproject.lock.jsonproject.fragment.lock.jsonartifacts/ # ASP.NET ScaffoldingScaffoldingReadMe.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.xmlTestResult.xmlnunit-*.xml 59 行•UTF-8•LF
決定論的パイプライン
生ソース: Dotnet .gitignore
クローラブルな公式アップストリーム原典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 Coreproject.lock.jsonproject.fragment.lock.jsonartifacts/ # ASP.NET ScaffoldingScaffoldingReadMe.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.xmlTestResult.xmlnunit-*.xml 主要除外パターンの解説
ビルド・コンパイル生成物
ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。
*.binlog
環境変数・シークレット情報
API キー、パスワード、接続文字列を含むローカル環境変数ファイル(.env)の流出を防止します。
.env
キャッシュ・一時ファイル
コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。
CodeCoverage/
ソース元とライセンス検証
ライセンス:: CC0-1.0
このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。