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?
我们使用Visual Studio 2008和Surround SCM进行源代码控制。 SCM将文件放入名为“.MySCMServerInfo”的每个目录中,这些目录是不应检入源代码管理的用户特定数据文件。它们类似于Visual Source Safe删除的.scc文件。我们还开发了几个WAP(Web应用程序项目)。所有这些.MySCMServerInfo文件都显示在解决方案树和Pending Checkins窗口中。必须有某种方法强制VS忽略给定扩展名的文件,因为它忽略了.scc文件。如何让VS忽略WAP中的.MySCMServerInfo文件?
3 个解决方案
#1
4
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.
我有关于此问题的新信息。在.MySCMServerInfo文件上设置隐藏位会导致环绕SCM无法跟踪文件的修改状态。当它们不是时,它开始认为文件是过时的,它总是试图获得新版本。
Instead, set this registry key if you're using Visual Studio 2008:
而是,如果您使用的是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:
如果您使用的是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.
这些将告诉Visual Studio不在Solution树和Pending Checkins视图中显示.MySCMServerInfo文件。
#2
0
Using the file system hidden bit should work.
使用文件系统隐藏位应该工作。
#3
0
Late Answer but hopefully useful to others.
迟到的答案,但希望对其他人有用。
I began experiencing this problem when using Visual Studio 2015 with the new ASP.Net 5 Project templates. (I presume this is because the new templates automatically include everything in the folder rather than only showing the things that are listed in the project file).
使用Visual Studio 2015和新的ASP.Net 5项目模板时,我开始遇到此问题。 (我认为这是因为新模板自动包含文件夹中的所有内容,而不是仅显示项目文件中列出的内容)。
Showing these files in the Solution explorer change be prevented by right clicking the file and selecting "Hide from Solution Explorer" but this didn't prevent SCM from including them in the Pending Check-ins Window.
通过右键单击文件并选择“从解决方案资源管理器中隐藏”,可以防止在解决方案资源管理器更改中显示这些文件,但这并不妨碍SCM将它们包含在Pending Check-ins窗口中。
The correct way to deal with this problem is:
处理这个问题的正确方法是:
- Select the file(s) in Solution Explorer
- Select the File > Source Control > Exclude from Source Control
在解决方案资源管理器中选择文件
选择文件>源代码管理>从源代码管理中排除
NOTE: Right Click in the Solution Explorer DOESN'T have this option.
注意:在解决方案资源管理器中右键单击没有此选项。
#1
4
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.
我有关于此问题的新信息。在.MySCMServerInfo文件上设置隐藏位会导致环绕SCM无法跟踪文件的修改状态。当它们不是时,它开始认为文件是过时的,它总是试图获得新版本。
Instead, set this registry key if you're using Visual Studio 2008:
而是,如果您使用的是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:
如果您使用的是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.
这些将告诉Visual Studio不在Solution树和Pending Checkins视图中显示.MySCMServerInfo文件。
#2
0
Using the file system hidden bit should work.
使用文件系统隐藏位应该工作。
#3
0
Late Answer but hopefully useful to others.
迟到的答案,但希望对其他人有用。
I began experiencing this problem when using Visual Studio 2015 with the new ASP.Net 5 Project templates. (I presume this is because the new templates automatically include everything in the folder rather than only showing the things that are listed in the project file).
使用Visual Studio 2015和新的ASP.Net 5项目模板时,我开始遇到此问题。 (我认为这是因为新模板自动包含文件夹中的所有内容,而不是仅显示项目文件中列出的内容)。
Showing these files in the Solution explorer change be prevented by right clicking the file and selecting "Hide from Solution Explorer" but this didn't prevent SCM from including them in the Pending Check-ins Window.
通过右键单击文件并选择“从解决方案资源管理器中隐藏”,可以防止在解决方案资源管理器更改中显示这些文件,但这并不妨碍SCM将它们包含在Pending Check-ins窗口中。
The correct way to deal with this problem is:
处理这个问题的正确方法是:
- Select the file(s) in Solution Explorer
- Select the File > Source Control > Exclude from Source Control
在解决方案资源管理器中选择文件
选择文件>源代码管理>从源代码管理中排除
NOTE: Right Click in the Solution Explorer DOESN'T have this option.
注意:在解决方案资源管理器中右键单击没有此选项。