简体   繁体   English

如何在tfs中检出文件?

[英]How do I check out a file in tfs?

I have a Setup/Deployment project for my C# and attempting to delete a file from the 'File System on Target Machine' -> Application Folder -> ConverterModule. 我有一个用于C#的安装/部署项目,并尝试从“目标计算机上的文件系统”->应用程序文件夹-> ConverterModule中删除文件。 But I get this error: 但是我得到这个错误:

The command you are attempting cannot be completed because the file 'AS_renderingServer.vdproj' is under source code control and is not checked out. 您尝试执行的命令无法完成,因为文件“ AS_renderingServer.vdproj”处于源代码控制之下,未检出。

How do I check out a vdproj-file? 如何检出vdproj文件? According to Microsoft I should: 根据微软的说法,我应该:

In Solution Explorer, select the referenced file. 在解决方案资源管理器中,选择引用的文件。 On the File menu, choose Check Out. 在文件菜单上,选择签出。

That sounds pretty easy, except that the vdproj-file doesn't seem to appear anywhere in the Solution Explorer. 听起来很简单,只是vdproj文件似乎未出现在解决方案资源管理器中的任何位置。 How can I select it? 我该如何选择呢?

Open the Team Explorer, double click on "Source Control" inside your team project and locate the file in the source control browser. 打开团队资源管理器,双击团队项目中的“源代码管理”,然后在源代码管理浏览器中找到文件。
Alternatively, simple right click on the setup project in the solution explorer and select "Check Out for edit...", because that project represents the project file. 或者,只需在解决方案资源管理器中的安装项目上单击鼠标右键,然后选择“签出以进行编辑...”,因为该项目代表项目文件。

如果您要检出的文件不在解决方案中,也可以通过在Team Explorer \\ Source Control中浏览到有问题的文件来检出文件。右键单击该文件以检出以进行编辑

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

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