# .gitignore for C# / ASP.NET Core with JetBrains Rider/ReSharper # ############################################################################## # ## Purpose: This file tells Git which files and folders to ignore in a ## # ## project. It's configured for C#/.NET projects and JetBrains tools. ## # ############################################################################## # #################### # ## JetBrains IDEs ## # #################### # Covers project settings, caches, and user-specific configurations for Rider, # ReSharper, and other IntelliJ-platform IDEs. # Project-specific settings (shared ones are typically in .idea/ and checked in) .idea/ # User-specific settings *.sln.DotSettings.user *.suo # ReSharper and Rider cache files _ReSharper*/ _Rider*/ # ################################# # ## Visual Studio / .NET Core ## # ################################# # User-specific files generated by Visual Studio *.user *.vs/ # Build results [Bb]in/ [Oo]bj/ # Publish results [Pp]ublish/ **/publish/ # NuGet packages folder (for older packages.config style) packages/ # NuGet symbol packages *.nupkg # ...but not in a 'packages' directory, which is for source code. !**/packages/*.nupkg # Test results TestResults/ *.trx # ################################################# # ## Secrets & Environment-Specific Config Files ## # ################################################# # IMPORTANT: Never commit secrets or credentials. # User secrets file (stores secrets locally, not in the project directory) # This is a good reminder, though the file is typically outside the repo. secrets.json # Ignore all environment-specific appsettings, but KEEP the base and Production. # This prevents developers from accidentally committing local dev connection strings. appsettings.*.json !appsettings.json !appsettings.Production.json # Environment variable files .env # ################################# # ## Web & Client-Side Assets ## # ################################# # Ignore folders for client-side package managers. node_modules/ bower_components/ wwwroot/lib/ # ################################# # ## Miscellaneous ## # ################################# # Log files *.log logs/ # IIS Express configuration file applicationhost.config # Files generated by Visual Studio testing *.mdf *.ldf # Visual Studio code coverage results *.coverage *.coveragexml # ################################# # ## OS-generated files ## # ################################# # macOS .DS_Store .AppleDouble .LSOverride # Windows Thumbs.db ehthumbs.db Desktop.ini