开发者

How to remove a folder from VS2008 Source Control, keeping the local folder intact?

I have a working folder that's synced to a team server. I was wondering if there is a way to remove some of the subfolders (i.e., sto开发者_StackOverflow中文版p syncing them, and make them invisible to others), without actually deleting them on the local drive?


I think "Exclude from project" (by right clicking the folder/file in solution explorer) is what might help you.


Most source control providers do not delete the folders when they are removed from source control. There are exceptions but I don't believe this is the standard behavior. If it is though you can do the following to work around the problem

  1. From explorer rename the directory and add the .backup extension
  2. Remove the folder from source code control. Since it's renamed it can't be deleted because source control can't find it
  3. Rename the folder back to the original name.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜