.gitignore file for Windows Store applications

When developing Windows Store applications (former “Metro Style”), these are generally the files that I don’t want Git to include in the repository:

  • Thumbs.db files that are created by Windows for caching image thumbnails;
  • *.suo and *.user files that are created by Visual Studio;
  • All the build artifacts that are created by Visual Studio:
    • Folders bin and obj;
    • The application package files for the Windows Store.
  • All the files created by ReSharper in a specific folder starting with “_ReSharper“.

Thus, this is how my .gitignore file usually looks like:

#Ignore thumbnails created by Windows
Thumbs.db

#Ignore files created by Visual Studio
*.user
*.suo
*.sln.docstates
[Oo]bj/
[Bb]in/
[Bb]ld/
[Aa]pp[Pp]ackages/

#Ignore files created by ReSharper
_ReSharper*/
This entry was posted in Version Control and tagged , , , . Bookmark the permalink.

One Response to .gitignore file for Windows Store applications

  1. ajimix says:

    I have included some more that can be useful if you use some visual studio tools.


    #Ignore thumbnails created by Windows
    Thumbs.db

    #Ignore files created by Visual Studio
    *.user
    *.suo
    [Oo]bj/
    [Bb]in/
    [Bb]ld/
    [Aa]pp[Pp]ackages/

    #Ignore files created by ReSharper
    _ReSharper*

    ## Ignore Visual Studio temporary files, build results, and
    ## files generated by popular Visual Studio add-ons.

    # User-specific files
    *.suo
    *.user
    *.sln.docstates

    # Build results
    [Dd]ebug/
    [Rr]elease/
    x64/
    *_i.c
    *_p.c
    *.ilk
    *.meta
    *.obj
    *.pch
    *.pdb
    *.pgc
    *.pgd
    *.rsp
    *.sbr
    *.tlb
    *.tli
    *.tlh
    *.tmp
    *.log
    *.vspscc
    *.vssscc
    .builds

    # Visual C++ cache files
    ipch/
    *.aps
    *.ncb
    *.opensdf
    *.sdf

    # Visual Studio profiler
    *.psess
    *.vsp
    *.vspx

    # Guidance Automation Toolkit
    *.gpState

    # NCrunch
    *.ncrunch*
    .*crunch*.local.xml

    # Installshield output folder
    [Ee]xpress

    # DocProject is a documentation generator add-in
    DocProject/buildhelp/
    DocProject/Help/*.HxT
    DocProject/Help/*.HxC
    DocProject/Help/*.hhc
    DocProject/Help/*.hhk
    DocProject/Help/*.hhp
    DocProject/Help/Html2
    DocProject/Help/html

    # Click-Once directory
    publish

    # Publish Web Output
    *.Publish.xml

    # Others
    sql
    TestResults
    [Tt]est[Rr]esult*
    *.Cache
    ClientBin
    [Ss]tyle[Cc]op.*
    ~$*
    *.dbmdl

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>