I'm one of the developer team. Is it okay if I changing the Local Path in Source Control Explorer on Visual Studio that different from the default directory?
So what happening if I do mapping/each team has different Local Path on Team Foundation Server and do check in on server?
Thanks,
It's fine to do that. All a workspace mapping does is control what source control path (ex: $/MyTeamProject/Foo) maps to on your PC (ex: C:\Source\Foo).
The only thing you should keep in mind as a general rule is to always use relative paths for references -- don't assume everyone else will use the same local path as you.
Related
This question is for building Angular application in VS Code.
My team has been coding in VS2015 and using Microsoft TFS for version control (Please note that our code is within the company firewall, on a local TFS build server and not on Gits repository). For Angular, I installed VS Code and Azure Repos plugin for TFS.
Once Work-space is setup, I can see the files (I downloaded the files from VS2015 on local machine) but they all show as "Untracked" changes - why? These are checked in files.
Also, when a colleague checks-in files from their VS Code instance, my VS Code doesn't get it.
What is that I am missing here?
I figured out the issue (or a workaround). Posting my solution for any newbie facing the same issue:
Please note that my code is not in GITS or any remote repository, it is in Team Server hosted in the company data center.
I have a workspace created in VS2015 via which I mapped my Angular code and downloaded it on local machine.
VS Code Settings:
Make sure you have Azure Repos extension installed.
Go to File->Preferences->Settings (make sure User settings tab is selected)-> Extensions-> Azure Repos extension:
Provide the values for following fields:
(a) Tfvc: Location Example value for VS2015: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\tf.exe
(b) Tfvc: Proxy
Example (this should be your team server name): https://dataCenter.myCompany.com:9100/tfs
(c) Tfvc: Restrict Workspace (this is optional, use only if needed)
Check the box
Goto View->Command Palette-> type Team: Signin, provide username and password.
Goto File->Open folder-> select the folder mapped via VS2015.
Once the folder is open, you will see all files inside the folder. Go to File->Save Workspace As and give it a name.
Now you should be able to see any changes done by you in either VS2015 or VS code. Check-in should reflect the changes for you and other users connected to the code.
Previous Mistake: I realized that I was using Gits:Initialize Repository (as advised on various sites) which was causing all the trouble of "Untracked" changes and other users' changes not reflecting in my code.
Thanks,
RDV
I've managed to edit sites through ftp connection in Visual Studio 2015 Professional version. How would I go about having those saved changes I make in the ftp Connection be mirrored in my local file system in a version control type of way?
(I've tried opening the site and then right clicking to select team foundation version control, this does not work)
If the files that you want to version-controlled have been added into TFS, you just need to create a workspace and map it with TFS. Then you can get all files from TFS.
I have a number of SSIS packages spread throughout TFS, e.g. \Imports\impSSIS01\\, \OtherPackages\Exports\expSSIS02\\, etc. Anytime I open up any of those, I want the working directory to be E:\SSIS\, e.g. E:\SSIS\impSSIS01\\*.\*, E:\SSIS\expSSIS01\\*.\* When I try to set up my workspaces like that though, I get the error:
The path E:\SSIS is already mapped in workspace PC-MYCP01
I don't care if it's already mapped. I know it's already mapped. I want it to be already mapped. Just let me map it.
(Also, does this mean no one else on my team could use E:\SSIS\? I hope not, it's a shared drive we all need to use.)
Have you tried removing all your mappings and then map the root of your Tfs collection to e:\ssis. That way getting latest on a sub folder will extract the contents to a folder relative to e:\ssis.
Download the free Team Foundation Sidekicks 2010. It provides a convenient way to delete and modify workspaces.
I have a project on server call "MyApp". I connect the tfs server, retrieve and save project my desktop.
Then change project name "MyApp" to "MyAppTemp" on server..
Call project again from server, i expect a problem but no problem. So I understood that the project also has got a different location on the server.
Where is real location of my team project?
This is a bit confusing, because you cannot locally save a team project.
A team project is a set of settings and options, which you can only see from the connected server, but not 'download' in any way. Maybe you're confusing this with Visual Studio projects, which is something totally different?
Anyway, data for a team project live in the TFS database.
Thomas
A workspace in TFS contains the mappings between a location in TFS Source Control and your local file system. http://msdn.microsoft.com/en-us/library/ms181383(v=VS.100).aspx
Clearly there's something different in the setup of my Team Explorer compared to my desk mates. In my source exlorer the Local Path label is a hyperlink that opens an Explorer windows at that location (very handy!) But such is not the case for my deskmates.... I wonder what I have different from them?
You have VS2008 SP1 installed on your machine and your colleague does not.