Versioning with Visual Studio 2010 and HG

Recently me and my team got a HG repository for versioning as this would make it easier and better to develop our application.

We are using Visual Studio 2010 and c#

  • See git commands generated by TortoiseGit
  • C++ How to parse the output of a structured git log into an object
  • How to synchronize SVN revision and version ressources of EXE/DLL files?
  • Git mega squash all sequential commits with same message and author
  • Is there a program (or sed script) that will remove a function from a C file?
  • build .net application in Jenkins using MSBuild
  • All of the project is under version control..

    Unfortunately, when one of us commits, usually the other gets an error of some kind when opening the solution (due to the various files VS has)

    My question is: what files should be put under version control? (and removed in my case!)

    PS: we have 3 Projects: (using XNA) game, contents, test

    Thank you very much!!!


  • How can I alert developers they need to run certain commands after they pull my commit (in version control/git)?
  • What files in an Xcode iOS project should I tell Mercurial to ignore?
  • Is it a good idea to put Mercurial Repository in shared Network drive?
  • PIP hg+ and git+ always downloads package instead of detecting satisfied requirement
  • Switching Mercurial Projects (Bitbucket) to Git (Github)
  • What is the recommended source control ignore pattern for Seam projects?
  • 4 Solutions collect form web for “Versioning with Visual Studio 2010 and HG”

    At least you need these in your .hgignore:

    syntax: glob

    Add as needed. But don’t overignore as you can lose data that way. For instace @Darin’s answer causes you to stop tracking of private key files (.snk).

    I use below and it came from Rob Conery on his tutorials for mercurial ( & at tekpub. It’s on a git repo and was originally for VS 2K8 but works just fine for 2K10.

    syntax: glob


    Here’s a list of files and directories I exclude from version control in the case of directory I exclude recursively everything from this directory):


    Here are a few more:

    Git Baby is a git and github fan, let's start git clone.