Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.Gitignore for ASP.NET MVC
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
*.pdb
*.dll.config
*.cache
*.suo
# Include dlls if they’re in the NuGet packages directory
!/packages/*/lib/*.dll
!/packages/*/lib/*/*.dll
# Include dlls if they're in the CommonReferences directory
!*CommonReferences/*.dll
####################
# VS Upgrade stuff #
####################
UpgradeLog.XML
_UpgradeReport_Files/
###############
# Directories #
###############
bin/
obj/
TestResults/
###################
# Web publish log #
###################
*.Publish.xml
#############
# Resharper #
#############
/_ReSharper.*
*.ReSharper.*
############
# Packages #
############
# it’s better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
######################
# Logs and databases #
######################
*.log
*.sqlite
# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db
[Bb]in
[Oo]bj
[Tt]est[Rr]esults
*.suo
*.user
*.[Cc]ache
*[Rr]esharper*
packages
NuGet.exe
_[Ss]cripts
*.exe
*.dll
*.nupkg
*.ncrunchsolution
*.dot[Cc]over
@wfaria
Copy link

wfaria commented Sep 25, 2018

Thanks!

@andy51002000
Copy link

andy51002000 commented Oct 27, 2018

Thanks~

@brunocicom
Copy link

brunocicom commented Nov 29, 2018

Very helpful. Thanks.

@kri-kan
Copy link

kri-kan commented Dec 24, 2018

Can we commit PublishProfiles folder into source control.. As you haven'e added that to ignore list.

@StevenBegin
Copy link

StevenBegin commented Feb 18, 2019

Thanks! 👍

@CleiberReis
Copy link

CleiberReis commented Mar 19, 2019

Thanks!

@rintaromasuda
Copy link

rintaromasuda commented Mar 27, 2019

Amazing! Thanks!

@taylorchasewhite
Copy link

taylorchasewhite commented Apr 17, 2019

Thanks!

@franciscc
Copy link

franciscc commented May 10, 2019

Thank you!

@dprutkevich
Copy link

dprutkevich commented Jun 6, 2019

thank you, it works

@monkymn
Copy link

monkymn commented Sep 5, 2019

Muchas Gracias! 👍

@faustog94
Copy link

faustog94 commented Sep 9, 2019

Thanks you!

@ricardosaracino
Copy link

ricardosaracino commented Oct 8, 2019

should add .idea for Rider

@gtusar
Copy link

gtusar commented Oct 16, 2019

Does not the second *.dll (line 72) and packages (line 68) under # OS generated files # override whole this section (lines 12-16):

# Include dlls if they’re in the NuGet packages directory
!/packages/*/lib/*.dll
!/packages/*/lib/*/*.dll
# Include dlls if they're in the CommonReferences directory
!*CommonReferences/*.dll

?

@mohammad007kh
Copy link

mohammad007kh commented Feb 6, 2020

Thanks!

@sametakbal
Copy link

sametakbal commented Mar 27, 2020

Thank you !

@hoangngoclam
Copy link

hoangngoclam commented May 6, 2020

Thanks you very much ^_^

@Mateushrr
Copy link

Mateushrr commented Jun 8, 2020

Thx so much!

@thestillwaters
Copy link

thestillwaters commented Jul 1, 2020

Thx so much, your way is better than lfs.

@cristianlatapiat
Copy link

cristianlatapiat commented Jul 10, 2020

Excelente Aporte , Muchas gracias.

@LassazVegaz
Copy link

LassazVegaz commented Sep 18, 2020

Thank you

@bantya
Copy link

bantya commented Jan 15, 2021

Thanks a ton.. 🙌🏽

@W3C1994
Copy link

W3C1994 commented Apr 29, 2021

Thank you!!!

@rmohan20195
Copy link

rmohan20195 commented Jun 5, 2021

Thank you very much, saved my day. 👍

@Knerbel
Copy link

Knerbel commented Jun 23, 2021

Thanks!

@ajru
Copy link

ajru commented Sep 1, 2021

Thanks , saved my time

@Troxar
Copy link

Troxar commented Oct 5, 2021

Thx!

@quyetkaito68
Copy link

quyetkaito68 commented Jan 6, 2022

Thank you - Cám ơn rất nhiều

@vicdant1
Copy link

vicdant1 commented Mar 5, 2022

Thank you sir :)

Hugs from Brazil 🇧🇷

@eugene-sh
Copy link

eugene-sh commented Jun 6, 2022

Thanks! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment