简体   繁体   中英

Cannot rebind TFS Solution in Visual Studio 2013

I noted that some files in my solution explorer are not in source control as they do not have a padlock icon. I tried to rebind the solution as suggested here but I do not have a Source Control menu item under file. 文件菜单中没有源代码管理选项

It seems you are using Git as your source control. There is no Source Control menu item under File for Git. It's a normal phenomenon. This menu item is only for TFVC .

No matter your folder(Solution items) are adding in source control or not, there is no padlock icon in front of it. It's by designed. Normally, if you can see it in Solution Explorer, means it has been added in source control. You can double check it through your Web Portal (Code→Git→Your solution) 在此处输入图片说明

If you can't see it , you want to add it in source control. Right click your solution in Solution Explorer, select source control, select commit, then commit and push. Or use git command, $ git add . /$ git commit -m "First commit"/ $ git push origin master $ git add . /$ git commit -m "First commit"/ $ git push origin master

如果您使用TFVC作为源代码控件,则可以从Tools-> Options 启用/禁用插件选择 ,尽管我怀疑Patrick对Git的假设是正确的。

I was indeed using Git but even right-clicking on my solution did not provide me with the source control option (as @Patrick suggested). Eventually I noted that in Team explorer > Changes there was a section containing Untracked Files. I clicked Add all, and these files started being tracked, thus solving my problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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