<p>What is a good setup for .hgignore file when working with Visual Studio 2008?</p>

<p>I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it.</p>

<p>I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included or are there file I shouldn't include?</p>

<p>Thanks!</p>

<p>p.s.: at the moment I do the following : ignore all .pdb files and all obj folders.</p>

<pre><code># regexp syntax.
syntax: glob
*.pdb

syntax: regexp
/obj/
</code></pre>

This is specific to a C# project, but I ignore these files/directories:
```
*.csproj.user
```
```
/obj/*
```
```
/bin/*
```
```
*.ncb
```
```
*.suo
```
I have no problems running the code in the depot on other machines after I ignore all of these files. The easiest way to find out what you need to keep is to make a copy of the folder and start deleting things you think aren't necessary. Keep trying to build, and as long as you can build successfully keep on deleting. If you delete too much, copy it from the source folder.
In the end you'll have a nice directory full of the only files that have to be committed.