📜  asp.net core .gitignore - C# (1)

📅  最后修改于: 2023-12-03 15:13:31.803000             🧑  作者: Mango

ASP.NET Core .gitignore - C#

If you're working with ASP.NET Core and C#, it's important to make sure that unnecessary files and directories aren't being included in your Git repository. This not only keeps your repository clean and organized, but it can also help improve the performance and speed of your builds.

Here's a recommended .gitignore file to use for your ASP.NET Core project:

# Visual Studio files #
.vs/
*.suo
*.user
*.sln.docstates

# Build results #
[Dd]ebug/
[Rr]elease/
bin/
obj/

# NuGet Packages #
*.nupkg
packages/
*.nuget.targets
*.nuget.props

# MSTest test Results #
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NCrunch #
_NCrunch_*
.*crunch*.local.xml

# ReSharper #
*.resharper
*.ReSharper*
*.DotSettings.user

# CodeRush #
.cr/
DXCore/	
CodeRush.MVC/

# TeamCity #
_TeamCity*

# RIA/Silverlight projects #
Generated_Code/

# DocProject #
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxA
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once #
publish/

# Publish Web Output #
*.Publish.xml
*.pubxml
*.pubxml.user

This .gitignore file includes exclusions for Visual Studio files, build results, NuGet packages, MSTest test results, and more. Be sure to add this file to the root of your Git repository to ensure that these files and directories will be ignored by Git.

Keep in mind that this is just a general .gitignore file and you may need to customize it further based on the needs of your specific project.

Happy coding!