TFS 2013 view files and folders in TWA - visual-studio-2013

I'm using Team Foundation Server 2013 which is connected to VS 2013. In the source control explorer, I've mapped folders to projects and it displays all the necessary files in VS so should I be able to view the associated files in TWA under the code tab when I navigate to the correct project? When I say files, I just mean the file name and folders not the actual source code or have I configured it wrong?

Check your Access Level in TWA. If you're defaulting to a Stakeholder then you wouldn't be able to see source code.
Go into the admin page for TWA, click Control Panel in the top left and select the Access Levels tab or navigate to:
http://yourserver:8080/tfs/_admin/_licences
Stakeholder may be the default so add yourself to Basic or Advanced (or set as default) and try again.

Along with setting my access level to advanced, I also checked "add to source control" on new projects and added it to existing projects and finally checked them in.

Related

TFS checkin list shows only modified files but not newly created files

For my project on TFS in Visual studio 2010, I had right clicked the project directory and checked out first. Then I have added and modified the files in the local path in file system. When I come back and do the "Checkin pending changes",in the list it only shows the modified files from local path, but not newly added ones.
How can I get the newly added files as well in the checkin list?
To add non-project content to source control:
Ensure that the items you want to add (for example, the packages folder) are in an appropriate location within a mapped folder on your local file system.
In Visual Studio 2010, In the Team Explorer window, expand your team project, and then double-click Source Control.
On the Source Control Explorer tab, in the Folders pane, select the folder that contains the item or items you want to add.
Click the Add Items to Folder button.
In the Add to Source Control dialog box, select the folder or items you want to add, and then click Next.
On the Excluded items tab, select any required items that have been automatically excluded (for example, assemblies), and then click Include item(s).
On the Items to add tab, verify that all the files you want to include are listed, and then click Finish.
In the Source Control Explorer window, click the Check In button.
In the Check In – Source Files dialog box, type a comment, and then click Check In.
Check the link below:
https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-team-foundation-server-for-web-deployment/adding-content-to-source-control
Add them from the source control explorer.
In modern versions of Visual Studio and TFS (versions >= 2012), you can use local workspaces to automatically track changes made from outside of Visual Studio.

TFS Map Team Projects to different folders

I'm using the TFS Server offered by Visual Studio Online and Visual Studio 2013.
I've mapped the DefaultCollection to C:\Users\xy\Source\TFS and the first Team Project TP1 to C:\Users\xy\Source\TFS\TP1.
Now I have a second Team Project TP2 which would automatically be mapped to C:\Users\xy\Source\TFS\TP2. Is it possible to change the path for TP2 to a completely different folder?
Yes, this is possible, but not really straight-forward. I'd advise to have a clean workspace without any pending changes, especially in the team project that you want to map differently.
Open Source Control Explorer.
In the toolbar of the window you can see a drop down box with your workspace. Choose Workspaces....
Select your workspace and click Edit....
The dialog contains a grid Working folders that you can use to add special mappings. A picker dialog for the TFS side and the local file system structure support you in this task.
Leave all the dialogs with Ok.

Browser links are not showing in Visual Studio 2013

I am using Visual Studio 2013. I don't no what happened to VS,now it is not showing Browsers list.How to overcome from this problem please suggest me.
Include screenshot of the project / solution list. I believe somehow you are opening a .csproj project file for a non MVC application even though it has all the code files that look like a MVC application. For instance someone may have created a windows form application and imported all the MVC / .cs files from a MVC ASP .NET project.
If you included that screenshot we could see the icon next to the project to rule that out as a potential cause.
Alternatively you can try reset your visual studio 2013 settings by doing the following:
1.On the Tools menu, click Import and Export Settings.
2.On the Welcome to the Import and Export Settings Wizard page, click Reset all settings and then click Next.
3.If you want to save your current settings combination, click Yes, save my current settings, specify a file name, and then click Next.
β€”orβ€”
If you want to delete your current settings combination, choose No, just reset settings, overwriting my current settings, and then click Next. This option does not delete default settings, which will still be available the next time you use the wizard.
4.In Which collection of settings do you want to reset to, select a settings collection from the list.
5.Click Finish.

How to open project to edit using Team Foundation Server

I just started using the new free Team Foundation Server (http://tfs.visualstudio.com/) I have a project which is checked in and I can see all the source in the source viewer on the website.
I am connected to my project within Visual Studio. But, there is absolutely nothing appearing in my solution explorer and I don't seem to be able to figure out how to load all of the source so that I can work on my project.
Any suggestions? I have no idea how to use this and I have read all the tutorials on the website, but they don't show me how to actually open my project.
Again, I am connected to the project but nothing is showing up in "Solution Explorer".
In Team Explorer navigate to your project and double click on the solution.
Or, go to File... Source Control... Advanced... Open from Source Control.
You need to have your Workspace mapped for any option to work.
To map the workspace, select the workspaces option from the Workspace drill down in the Source Control Explorer. From there select your workspace you want to map and edit it. All you simply have to do from there is select the local folder.

How to add TFS bindings to a Visual Studio 2010 project?

There's a question already discussing how to add project/solution bindings to TFS, however it seems to only apply to Visual Studio 2008 (I am unable to find the "Change Source Control" dialog in VS2010).
I have a solution and source code on my local machine already in TFS, however it does not have TFS bindings (the thing that produces the padlock icon in the Visual Studio Solution Explorer and allows automatic checkout).
How can I add bindings to an existing TFS project using Visual Studio 2010?
In VS2010 check Tools>Options>Source Control and see if set to TFS. If not that might be why you don't see File->Source Control->Change Source Control.
I ran into this problem and, for me, the issue was that my solution was offline with respect to TFS. Upon trying to change source control, I received a message stating that it is already associated with source control but is offline. I placed the solution on-line, per my recollection, using the File->Source Control->Go Online menu option and this seemed to fix the problem.
Go to the source control explorer under Team Explorer, where you can see your repository. Right click on the top folder that maps to the folder on your local machine. There's an option called "Map to local folder". Map this to the folder on your local machine. This will set up all the bindings for TFS for your project.
I had the same problem and the following steps solved it for me in VS 2008.
Unfortunately, I didn't record the exact steps and don't want to add a new project to our TFS to try again, so the steps are from memory.
Go to File Menu -> Source Control -> Open from source control
Select solution file from TFS hierarchy
Accept any warning about project already being on local disc
A popup dialog comes up saying something along the lines "This solution is already under source control, but no bindings exist. Do you want to add them?"
A selector shows all projects in a grid and allows adding the required bindings. Add TFS server setting to each project (select all lines in grid at once and press a button at the top. I can't remember what it was called, but it was fairly obvious).

Resources