简体   繁体   English

使VS2012获得TFS解决方案的添加文件

[英]make VS2012 get the added files of a TFS solution

I am new in TFS, i have did GetLatestVersion but all newly added file in TFS was not getting in visual stdio but i can see those added file in TFS Server. 我是TFS的新手,我做过GetLatestVersion,但是TFS中所有新添加的文件都没有进入可视stdio,但是我可以在TFS Server中看到那些添加的文件。 Please suggest? 请提出建议?

Click on the Show All Files in solution explorer to see the newly added file. 单击在解决方案资源管理器中Show All Files以查看新添加的文件。 It will be greyed out. 它会变成灰色。 Right click on the file and select Include to get it added to your project or soltion. 右键单击该文件,然后选择“ Include以将其添加到您的项目或解决方案中。

Common problem is that file will be present in source control but not included into the solution. 常见问题是文件将出现在源代码管理中,但未包含在解决方案中。

You can do it this way: 您可以这样操作:

  1. File > Source Control > Advanced > Open from Source Control 文件>源代码管理>高级>从源代码管理打开
  2. Find you Team Project 找到你的团队项目
  3. Open its .proj, .sln file, whichever is appropriate 打开其.proj,.sln文件,以适当的方式打开
  4. Select 'Yes' / 'Overwrite' if it says you have the same files locally 如果显示本地有相同文件,请选择“是” /“覆盖”

This will ensure you get all the files from source control, rather than just those in your local project definition. 这将确保您从源代码管理中获取所有文件,而不仅仅是本地项目定义中的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM