如何排除某些文件夹的Visual Studio 2012检测到更改列表?文件夹、检测到、列表、Studio

2023-09-03 03:25:36 作者:动我姐妹全撂倒

在Visual Studio 2012 /团队资源管理器/挂起的更改有一个链接到文件列表与溶液内检测到的变化。

In Visual Studio 2012 / Team Explorer / Pending Changes there is a link to list of files with detected changes inside the solution.

我怎样才能使Visual Studio中不检测挂起的更改在 _ReSharper。* 文件夹?

How can I make Visual Studio NOT to detect pending changes in _ReSharper.* and Packages folders?

推荐答案

您可以手动将.tfignore文件添加到您的解决方案忽略特定的文件,扩展名或文件夹。在该文件中定义的项目将不会被认为是一个变化。如果你点击了检测到的变化,你也可以忽略从Visual Studio中的项目(通过右键单击选定的项目)。

You can manually add a .tfignore file to your solution to ignore specific files, extensions or folders. The items defined in that file will not be considered as a change. If you click on the 'detected changes' you can also ignore items from within Visual studio (by right-clicking a selected item).

在的情况下ReSharper的,你可以选择把缓存文件在系统临时文件夹。这样,你就不必从源代码控制排除它们:

In case of resharper you can choose to put the cache files in the system temp folder. That way you don't have to exclude them from source control:

http://www.splatto.net/portfolio/blog/post/2009/06/29/Removing-Resharper-Cache-Directories-in-Project-Solution-Folder.aspx

更新:上面的链接不再解析,但在ReSharper的配置缓存的位置信息,请在的 ReSharper的帮助中心

Update: The above link no longer resolves, but information on configuring your Cache location in ReSharper is available in the Resharper Help Center