Visual Studio 和 TFS,检测 Visual Studio 外的变化 [英] Visual Studio and TFS, detect changes outside Visual Studio

查看:31
本文介绍了Visual Studio 和 TFS,检测 Visual Studio 外的变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有 ASP.NET Web 应用程序的 Visual Studio 2015,并安装了 Umbraco 和 uSync.uSync 和 Umbraco 是什么并不重要,但是当我启动项目并在 Umbraco 中创建模板时,uSync 会将导出"文件写入项目路径中的特定文件夹.

Im Working with Visual Studio 2015 with an ASP.NET Web Application, with Umbraco and uSync installed. It's not essential what uSync and Umbraco are, but when I start the project and create a Template in Umbraco, uSync writes "export"-files to a specific folder in the project path.

现在 Visual Studio 不会在挂起的更改下列出新的、更改的或删除的文件,因此我无法签入我的更改.

Now Visual Studio doesn't list the new, changed or deleted files under pending changes, so i can't check-in my changes.

有没有办法让 Visual Studio 始终跟踪项目特定文件夹中创建、删除或更改的文件?

是的,我总是可以手动将文件包含到项目中,但是当我错过文件或有人使用此解决方案但不知道他必须手动包含它们时,这可能会导致错误.

还有其他文件我不需要签入,所以我需要一个解决方案来指定 Visual Studio 应该跟踪哪些文件夹,而不是如何跟踪整个项目路径中发生的所有事情.

There are also other files that I don't need to check in so I need a solution to specify, which folders Visual Studio should track and not something how to track everything going on in the whole project path.

推荐答案

您只需要创建一个本地工作区,而不是服务器工作区.

You just need to create a local workspace and not a server Workspace.

然后检测到在解决方案之外编辑的所有文件:

Then all files edited outside your solution get detected:

图片:检测到添加的待定更改

然后我包含检测到的添加,因此它们位于包含的更改下.现在我可以检入所有更改的文件,但此时它们处于源代码管理中但未包含在项目中.因此,我添加了此链接中描述的行:

Then i include the detected adds, so they are under Included Changes. Now i can check-in all the changed files, but at this time they are in source control but not included to the project. So I add the lines like described at this link:

http://www.mattburkedev.com/automatically-include-all-files-in-folder-in-visual-studio/

然后我卸载项目并重新加载它.现在包含文件.

Then I unload the Project and Reload it. The files are now included.

所以下次我在 Umbraco 中添加文件时:只需在 Pending Changes 中添加检测到的添加并重新加载项目,一切都完成了.

So next time I add files in Umbraco: just add detected adds in Pending Changes and reload project, everything done.

这篇关于Visual Studio 和 TFS,检测 Visual Studio 外的变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆