对将现有文件添加到Team Foundation Server(TFS)感到困惑

时间:2018-02-02 18:07:23

标签: tfs

我正在尝试将文件“DSTB_QB.xml”添加到TFS中的现有项目中。我使用“将项目添加到文件夹”从Source Control Explorer将文件添加到现有项目中,但我必须将其与项目的其余部分分开检查。此外,虽然它出现在我的本地工作区中的“App_Data”文件夹(我想要它)中,但它不会出现在解决方案资源管理器中的“App_Data”文件夹下。就好像这个文件在源代码管理下,但不是项目的一部分。如何将文件作为项目的一部分?enter image description here

2 个答案:

答案 0 :(得分:0)

我通过右键单击" App_Data"来解决问题。解决方案资源管理器中的文件夹,然后选择"添加 - >现有项目"。我不确定上述评论者是否意味着什么,但它确实有效。

现在我的问题是:为什么我必须在Source Control Explorer和解决方案资源管理器中添加该文件?更具体地说,为什么没有在Source Control Explorer中添加它?

答案 1 :(得分:0)

You can not add just with Source Control Explorer because you Visual Studio Project does not know why some file exist on file system (maybe this temporary file). But if you add existing file with Solution Explorer to existing project this file will be added to source control automatically.