Created
January 27, 2025 09:27
-
-
Save orion6dev/ffecb7afef8c31dbb842c6b8a3be2faa to your computer and use it in GitHub Desktop.
JetBrains Rider, ReSharper, and .NET Core .gitignore template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .gitignore template for JetBrains Rider, ReSharper, and .NET Core projects | |
| # This file is designed to exclude IDE-specific files, build artifacts, temporary files, | |
| # and other unnecessary files that should not be committed to a Git repository. | |
| # The template focuses on JetBrains Rider but also supports Visual Studio and .NET Core. | |
| ## User-Specific Files | |
| # Exclude user-specific files that are unique to each developer's environment. | |
| *.rsuser # Rider user-specific settings | |
| *.suo # Visual Studio solution user options | |
| *.user # Visual Studio user-specific settings | |
| *.userosscache # User Open Source cache | |
| *.sln.docstates # Solution document states | |
| *.userprefs # MonoDevelop/Xamarin Studio preferences | |
| *.DotSettings.user # ReSharper/Rider user-specific settings | |
| *.snk # Strong name files can pose security risks | |
| ## IDE-Specific Files | |
| # JetBrains Rider and ReSharper | |
| .idea/ # Exclude all Rider project settings | |
| !.idea/modules.xml # Include shared project structure | |
| !.idea/libraries/ # Include shared library definitions | |
| !.idea/codeStyles/ # Include shared code style settings | |
| !.idea/inspectionProfiles/ # Include shared inspection profiles | |
| !.idea/runConfigurations/ # Include shared run/debug configurations | |
| !.idea/dictionaries/ # Include shared dictionaries for spelling | |
| _ReSharper*/ # Exclude ReSharper files | |
| *.[Rr]e[Ss]harper # Exclude additional ReSharper artifacts | |
| # Visual Studio-Specific Files | |
| .vs/ # Visual Studio temporary settings | |
| *.vspscc # Source code control files | |
| *.vssscc # Source code control files | |
| .builds # MSBuild files | |
| ## Build Results | |
| # Ignore build artifacts generated by .NET and Visual Studio. | |
| [Bb]in/ # Output binaries | |
| [Oo]bj/ # Intermediate object files | |
| [Dd]ebug*/ # Debug output folders | |
| [Rr]elease*/ # Release output folders | |
| artifacts/ # Custom build artifacts | |
| bld/ # Build directories | |
| [Ll]og/ # Logs generated during builds | |
| ## Temporary and Log Files | |
| # Ignore temporary files, logs, and caches created during development. | |
| *.log # Log files | |
| *.tmp # Temporary files | |
| *.tmp_proj # Temporary project files | |
| *.pidb # MonoDevelop intermediate files | |
| *.svclog # Service logs | |
| *.cachefile # Cache files | |
| *.VC.db # Visual Studio database files | |
| *.opt # Visual Studio options files | |
| *.plg # Visual Studio legacy project logs | |
| ## Testing and Profiling Files | |
| # Ignore test results and profiling artifacts. | |
| [Tt]est[Rr]esult*/ # Test result directories | |
| [Bb]uild[Ll]og.* # Build logs | |
| *.VisualState.xml # NUnit visual state files | |
| TestResult.xml # Test result files | |
| nunit-*.xml # NUnit test output | |
| *.psess # Visual Studio performance sessions | |
| *.vsp # Visual Studio profiler files | |
| *.vspx # Visual Studio profiler files | |
| *.sap # Visual Studio analyzer files | |
| OpenCover/ # OpenCover analysis results | |
| ## NuGet | |
| # Ignore NuGet packages and restore artifacts. | |
| *.nupkg # NuGet package files | |
| *.snupkg # NuGet symbol package files | |
| **/[Pp]ackages/* # NuGet packages folder | |
| !**/[Pp]ackages/build/ # Allow MSBuild targets | |
| *.nuget.props # NuGet properties | |
| *.nuget.targets # NuGet targets | |
| ## Node.js Dependencies | |
| # Ignore Node.js modules (if applicable). | |
| node_modules/ | |
| ## Publish and Deployment Files | |
| # Ignore files related to application publishing and deployment. | |
| publish/ # Publish output | |
| *.publishproj # Publish project files | |
| *.pubxml # Publish profile XML files | |
| *.azurePubxml # Azure publish profiles | |
| PublishScripts/ # Custom publish scripts | |
| *.appx # Windows app package files | |
| *.appxbundle # Windows app bundle files | |
| *.appxupload # Appx upload files | |
| csx/ # Azure Cloud Service scripts | |
| *.build.csdef # Build definition files | |
| ## Configuration and Generated Files | |
| # Ignore generated configuration files and binaries. | |
| *.runtimeconfig.dev.json # .NET runtime configuration | |
| *.deps.json # Dependency context files | |
| *.props # MSBuild property files | |
| *.targets # MSBuild target files | |
| *.dbmdl # Database model files | |
| *.dbproj.schemaview # Database schema view files | |
| orleans.codegen.cs # Orleans code generation files | |
| ## Microsoft Azure | |
| # Ignore files related to Azure. | |
| ecf/ # Azure Emulator config files | |
| rcf/ # Remote config files | |
| ## SQL Server Files | |
| # Ignore SQL Server database files. | |
| *.mdf # Primary database file | |
| *.ldf # Log database file | |
| *.ndf # Secondary database file | |
| ## Backup, Migration, and Upgrade Files | |
| # Ignore files created during migration or upgrades. | |
| MigrationBackup/ # Backup during migrations | |
| _UpgradeReport_Files/ # Upgrade report files | |
| UpgradeLog*.XML # Upgrade logs | |
| UpgradeLog*.htm # Upgrade logs | |
| ## Benchmarking and Code Coverage | |
| # Ignore files related to benchmarking and code coverage. | |
| BenchmarkDotNet.Artifacts/ # BenchmarkDotNet output | |
| *.coverage # Code coverage results | |
| *.coveragexml # Code coverage results (XML) | |
| *.dotCover # JetBrains dotCover files | |
| ## Dependency Managers | |
| # Ignore files generated by dependency managers. | |
| .paket/paket.exe # Paket dependency manager | |
| paket-files/ # Paket files folder | |
| ## Local Tool and Environment Files | |
| # Ignore local environment-specific files. | |
| multipass/ # Multipass configuration | |
| multipass/argocd.exe # Multipass ArgoCD executable | |
| multipass/kubectl.exe # Multipass kubectl executable | |
| multipass/dapr.exe # Multipass Dapr executable | |
| ## Miscellaneous | |
| # Catch-all for miscellaneous generated files. | |
| *.sass-cache/ # SASS cache | |
| ClientBin/ # Client binaries | |
| ~$* # Temporary files created by Office | |
| *~ # Backup files | |
| *.jfm # Font cache files | |
| *.pfx # Certificate files | |
| *.publishsettings # Azure publish settings | |
| *.GhostDoc.xml # GhostDoc settings | |
| .mfractor/ # MFractor folder (Xamarin productivity tool) | |
| .localhistory/ # Local history folder | |
| healthchecksdb # Temporary health check database | |
| ## OS-Specific Files | |
| # Ignore OS-specific files. | |
| .DS_Store # macOS Finder metadata | |
| Thumbs.db # Windows Explorer metadata | |
| # Editor-Specific (Optional) | |
| # Uncomment if you do not use EditorConfig. | |
| # .editorconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment