Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason Espin 368 posts 1335 karma points
    Feb 19, 2015 @ 16:29
    Jason Espin
    0

    Umbraco 7 and Mercurial respositories - Recommended .hgignore

    Hi all,

    As an overall drive to optimize our Umbraco development process, we are looking to refine what we push up to our Mercurial repository so that we only have code being sent up to the server that is required.

    So for example, I create a repository in my office based upon a fresh Umbraco 7 installation and then make my initial commit.

    What is the recommended .hgignore file for Umbraco projects that will ensure that when I download the repository to my home PC for use with Visual Studio there will be no compilation issues?

    Any advice or guidance would be greatly appreciated.

    Kind regards,

    Jason Espin

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Feb 20, 2015 @ 09:51
    Dave Woestenborghs
    101

    I have this in my gitignore file. I think the same principle goes for hgignore file. 

    I need to mention that we always install Umbraco using nuget and have nuget restore enabled. If you don't have that maybe you should not exclude the bin folder. Dll's added by packages installed by the Umbraco packages installer we put in a seperate folder and are copied to the bin folder using a post build event.

    # Windows image file caches
    Thumbs.db 
    
    # Folder config file
    Desktop.ini
    
    # Mac OS X Finder Desktop Services Stores
    .DS_Store
    
    # git merge files
    *.orig
    *.BACKUP.*
    *.BASE.*
    *.LOCAL.*
    *.REMOTE.*
    
    # User-specific files
    *.suo
    *.user
    *.cache
    *.orig
    *.udt
    
    # Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
    [Oo]bj/
    [Bb]in/
    [Dd]ebug/
    [Bb]uild/
    [Rr]elease/
    
    #Umbraco Folders
    App_Data/
    media/
    packages/

    Dave

  • Jason Espin 368 posts 1335 karma points
    Feb 25, 2015 @ 12:34
    Jason Espin
    0

    Hi Dave,

    Thanks for this. We always install a new installation of Umbraco using NuGet also when starting a new project so this file should be ideal.

    Cheers,

    Jason

Please Sign in or register to post replies

Write your reply to:

Draft