views:

538

answers:

2

We use Visual Studio 2008 and Surround SCM for source control. SCM drops files into each directory named ".MySCMServerInfo" which are user specific data files that shouldn't be checked into source control. They are similar to the .scc files dropped by Visual Source Safe. We also have several WAPs (Web Application Projects) that we develop. All these .MySCMServerInfo files show up in the solution tree and the Pending Checkins window when they should not. There has to be some way to force VS to ignore files of a given extension because it ignores .scc files. How do I get VS to ignore .MySCMServerInfo files within a WAP?

+1  A: 

Using the file system hidden bit should work.

Craig Quillen
I also found this work-around. From my web application project root, search for all .MySCMServerInfo files, select, and set their hidden attributes. They no longer show up in the solution tree or the pending checking list. However, It has to be redone whenever SCM gets a new .MySCMServerInfo file.
Charles
+3  A: 

I have new information about this issue. Setting the hidden bit on .MySCMServerInfo file causes Surround SCM to loose track of the modification state for files. It starts thinking files are out-of-date when they are not, and it always attemps to get new versions.

Instead, set this registry key if you're using Visual Studio 2008:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\
{8FF02D1A-C177-4ac8-A62F-88FC6EA65F57}\IgnorableFiles\.MySCMServerInfo]

Set this registry key if you're using Visual Studio 2005:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\
{8FF02D1A-C177-4ac8-A62F-88FC6EA65F57}\IgnorableFiles\.MySCMServerInfo]

These will tell Visual Studio to not display .MySCMServerInfo files within the Solution tree and the Pending Checkins view.

Charles
Also works for VS2010 !
bychkov