在 Visual Studio 中撤消挂起的更改时删除本地文件 [英] In Visual Studio remove local files when undo pending changes

查看:27
本文介绍了在 Visual Studio 中撤消挂起的更改时删除本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 中,如果我向项目添加了一些文件,但随后决定撤消待处理的更改,这些文件将从项目中删除但仍保留在我的硬盘上.这并不可怕,但很烦人.在 Visual Studio 中,有没有办法指定在撤消更改时还应删除本地文件?

In Visual Studio if I add a few files to a project but then decide to undo my pending changes the files are removed from the project but remain on my hard drive. This isn't terrible but is annoying. In Visual Studio is there a way to specify that when a change is undone local files should also be removed?

推荐答案

我不知道在 Visual Studio 中有什么方法可以做到这一点,但是,Team Foundation Server Power Tools 命令行实用程序 (TFPT.exe) 具有/scorch" 您可以运行的命令将同步您的文件系统(基于工作区)与版本控制备份.因此,例如,您从版本控制中删除但仍保留在硬盘上的任何项目都将被删除.

I do not know of any way to do this within Visual Studio, however, the Team Foundation Server Power Tools command line utility (TFPT.exe) has a "/scorch" command that you can run that will sync your file system (based on workspaces) back up with version control. So, for example, any items that you've deleted from version control that still remain on your hard drive will be removed.

这篇关于在 Visual Studio 中撤消挂起的更改时删除本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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