How do I tell VS what collection to bind to?
-
8. března 2012 18:40
TFS/VS 2010
I made a copy of existing local solution that was bound to source control. I removed the binding and them tried to add it to source control as a new project/solution. When i do, it doesn't prompt me for a location/collection to bind to. It just does it. What am I doing wrong? When I click bind from the change source control window, why does it just bind without asking where to bind it? Thanks.
J
Všechny reakce
-
8. března 2012 23:16
J,
You do not have to unbind and bind again your solution. Just copy the solution (in the Windows Explorer) from one Collection to another. Make sure that the destination is already mapped in the workspace. Next step is to add these new files in the Team Explorer and check them in.
Is this what you are expecting? If not, please explain exactly what are you trying to accomplish.
Please remember to mark the replies as answers if they help. --- Success, Damir
-
10. března 2012 23:46
Jason,
Once you have copied the files to a separate directory you have to open visual studio click on file, workspace, edit and delete the mapping. If you now choose to click add to source it will not pick up the old mapping.
It might sound strange but when you click unbind you only tell Visual Studio to unbind the project/files from tfs, when you click add to source it assumes you want to add it to the same workspace binding that you unbinded from. So, effectively, unbind, delete workspace mapping and then add to source it should work.
HTH
Cheers, TArunPlease remember to mark the replies as answers if they help.
Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader- Navržen jako odpověď Vicky SongModerator 12. března 2012 5:17
- Označen jako odpověď Vicky SongModerator 19. března 2012 4:02
