Versions with Visual Studio 2010 and HG

Recently, my team and I got the HG repository for version control, as this will simplify and improve the development of our application.

We are using Visual Studio 2010 and C #

The whole project is under version control.

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

My question is: which files should be versioned? (and deleted in my case!)

PS: we have 3 projects: (using XNA) game, content, test

Thank you very much!!!

Dan

+4
source share
4 answers

At least you need it in .hgignore :

 syntax: glob bin obj *.sln.cache *.suo *.user 

Add as needed. But do not replay, as you may lose data this way. To call instace @Darin, you stop tracking private key files (.snk).

+5
source

I use below and he came from Rob Conery to his mercury lessons (http://tekpub.com/view/hg/1 and http://tekpub.com/codeplex ) on tekpub. It is on the git repository and was originally for VS 2K8, but works fine for 2K10. http://gist.github.com/314082

syntax: glob

 *.obj *.exe *.pdb *.user *.aps *.pch *.vspscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.cache *.ilk *.log *.lib *.sbr *.scc [Bb]in [Dd]ebug*/ obj/ [Rr]elease*/ _ReSharper*/ [Tt]est[Rr]esult* [Bb]uild[Ll]og.* *.[Pp]ublish.xml 
+2
source

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

 bin/ obj/ TestResults/ *.vspscc *.user *.snk *.suo *.vssscc *.gpState Debug/ Release/ 
+1
source

Here are a few more:

 *.ncb *.sdf *.ilk *.aps *.resharper _ReSharper* *.Cache 
+1
source

All Articles