22

私は VS2008 と VS2010 で TFS を使用しており、TFS コレクションにはいくつかのプロジェクトがあります。

TFS ルートをローカル ドライブにマップして、TFS フォルダー構造を保持し、いくつかのサブフォルダーの最新情報を取得しました。

不要なフォルダーもダウンロードしたため、ローカル フォルダーの内容を削除しましたが、TFS でそのフォルダーが黒く表示され、「最新」のフォルダーが表示されます。以前にダウンロードしたフォルダーをローカルで削除したことを TFS に伝えるにはどうすればよいですか?

4

3 に答える 3

24

I think the problem is that you do not agree with TFS on what "latest" mean. "Latest" in TFS mean that nothing has changed on the server since you did get latest. It do not mean that what is on the hard drive is equal to the latest version on the server. So TFS shows what it is supposed to, see this question for more: Why doesn't TFS get latest get the latest?

The intended solution for folders on the server that you do not want to have on your local hard drive is "Cloak", as MBulava mentioned. (Right click folder -> Cloak). If you do not wish to have a folder on your hard drive I recommend this solution as it will never be downloaded until you uncloak it, and will show as greyed out and "not downloaded".

If you want to look at the differences between the contents on the hard drive and the server version you can use the "compare folders" feature. It will show that the folder is deleted on the hard drive.

If you want to get the folder mapped and grey (as the other folders you did not download) you can cloak it, and then uncloak it but answer "No" to downloading it now. This is equivalent to not downloading the folder in the first place.

于 2013-07-31T12:56:25.613 に答える