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.
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/
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
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.
Dave
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
is working on a reply...