Cant create project on TFS 2015 from VS 2013 Update 5 - visual-studio-2013

When I try to create a new project in TFS 2015 from VS 2013 Update 5, getting the error:
TF400324: Team Foundation services are not available from the server.
Technical inforamtion (for administrator):
TF200038: You cannot create a team project with your version of Team Explorer

According to this article on MSDN, you have to install VS 2015 to create a team project in TFS 2015:
You must connect from a client that is at the same version level as TFS. That is, you must connect to TFS 2015 from a version of Visual Studio 2015.
If you don't have a license for your edition of VS for 2015, you can always install Community edition.

This error occurs primarily due to corrupt Team Foundation Server cache.
There are several reasons why the cache can go corrupt
*Abrupt closure of TFS services on your machine
*Multiple versions of TFS (2010/2012/2013) configured on your machine
*Upgrade in the version of TFS at server end, but pending upgrade on client machine
*Corrupted installation of TFS client
Solution – Clearing of cache
Close all instances of Visual Studio
Open Task Manager and check if any TFS Services are running. Select
each of them and click on End Process Tree
Browse to the folder below and delete all the contents and
folders%LocalAppData%\Microsoft\Team Foundation\4.0\Cache
%LocalAppData%\Microsoft\Team Foundation\5.0\Cache
Restart Visual Studio and try triggering build
If you are switching from one version of TFS to another, you may require repeating this solution again.If you are using older version of TFS, you may have to navigate to
%LocalAppData%\Microsoft\Team Foundation\
and find out the version folder instead of navigating directly.
Post clearing of cache, you will be prompted to rebind your solution to TFS.
Don’t worry this would not let go of your local un-checked-in changes.

Related

Can't create team project in tfs express 2015

I'm using TFS Express 2015 and Visual Studio Community 2019. When I try to add solution to source control, I'm getting an error message:
"TF206018: The items could not be added to source control because either no team projects have been set up...".
There's no option of adding team project either in Team Explorer in Visual Studio or in TFS Express Admin Console!?
Is it even possible to work with TFS Express on local machine with VS Community?
It seems it's an existing issue that there is no "New Team Project" option in VS 2019 connecting TFS 2015. Check the following case:
There is no menu to create "new team project" on visual studio 2019
This issue has been reported in the following ticket, please vote and add your comments for this feedback track this issue: https://developercommunity.visualstudio.com/content/problem/690875/cannot-create-a-new-team-project-from-within-the-t.html
Since it's supported to create and delete Team projects from the web experience in TFS 2015.2 and later, you need to check your TFS edition to see whether you can create a team project from web protal:
As a workaround, you may need to use other versions of VS or install high version TFS.

How to configure local existing TFS server in Visual Studio 2017 Mac?

I am working on Xamarin with Visual Studio 2017. My organization has its own domain base TFS server, Now I need to configure that server to my Visual Studio 2017 Mac version projects.
I found the Visual Studio code is capable to connect the TFS, but it's connecting the Visualstudio.com server, I need to connect to the server which is my organization.
For visual studio Mac, TFS isn't supported for now. There has been a uservocie, you can vote up and monitor it.
TFS Version Control
https://visualstudio.uservoice.com/forums/563332-visual-studio-for-mac/suggestions/17136163-tfs-version-control
However as a workaround, you could use Visual Studio Code to connect on-premise
TFS server.
TFVC
You can connect to TFVC using the Visual Studio Team Services extension since version 1.116.0 (2017/04/12). This extension allows you to connect to Team Services and Team Foundation Server.
Note: You need Team Foundation Server 2015 Update 2 or later.
More details please take a look at my reply at this question: Connect VS code with TFS on mac
Here is an alternate way of doing the same.It is working fine for me
How to use TFS on a Mac
Steps to be followed:
Step 1: Install Eclipse
Step 2: Download and install the TFS everywhere plugin
Step 3: Checkout your solution using the eclipse to a local folder
Step 4: Open the solution in Visual studio and make the code changes
Step 5: Open eclipse and commit your changes.

Adding a new team project to Team Foundation Server 2015

I am trying to set up Team Foundation Server for my official visual studio projects, and we have set up TFS 2015 - Basic Server setup.
I have been working with Visual Studio 2012 in my development machine and trying to connect to the TFS and add projects to it.
When I go to File -> New Team Project, I got an error saying 'TF0172: You are trying to create a team project either without required permissions or with an older version of Team Explorer. Contact your project administrator to check your permissions or to determine how to upgrade Team Explorer'.
I have admin rights in the TFS server as well as in the development machine so the error machine does not look like it is a permission issue.
So trying to see if VS2012 is compatible with TFS 2015, or is it possible to make both compatible?
I have also updated my Visual Studio 2012 with the update 5.
Creating a team project requires a matching version of Visual Studio. So, to create a team project in TFS 2015, you need Visual Studio (or Team Explorer) 2015.

Visual Studio 2013 Crashing When Opening Team Explorer

After opening Visual Studio 2013 successfully, I switch to the Team Explorer tab and consistently get a popup error dialog saying that, "Microsoft Visual Studio 2013 has stopped working" and "Windows is checking for a solution to the problem".
This seems to be directly related to TFS (2013 Update 4) since other tools that access TFS (like Source Control Explorer > Workspaces...) also cause the crash.
Edit: I have already tried a VS 2013 Repair. This took all morning with no different results.
This is frustrating because I cannot use TFS outside of the command-line tools. Any help would be greatly appreciated. Thank you.
Credit to Tuğrul Emre Atalay for the post: Visual Studio Crashing When Checking In.
His issue was checking in changes and having Visual Studio crash. In my case, just using the TFS tools was consistently causing a crash.
The fix for me was to only clear out the local cache and not both the server and local caches.
Clean the Cache folder on client computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0\Cache.
I cleared this folder and I was able to use all of the TFS tools without any further issues.
I then realized that this happened since migrating to a new user name. I had copied many of my settings over from my old account folder and it must have corrupted the cache area.
I had the same issue with Visual Studio 2015 Enterprises. When i open it, VS wasn't able to connect to TFS and it crashed when i clicked on "manage connections"
The issue was not about the cache (I cleared the cache, made a repair of VS and nothing changed) but about the fact that we are currently migrating our projects from perforce to Git with Team Foundation Server.
When Visual Studio starts, it seems VS is trying to connect to TFS with linked Git repositories, but since the plugin currently used is perforce, it causes an exception somehow.
The solution is to set your source control plugin to Microsoft Git Provider (or Visual Studio Team Foundation Server if you are using it)
Here's two screen shots I took. Right after I selected the Microsoft Git Provider, the Team Explorer tab automatically refreshed and I am now able to connect to my projects.
Go to Tools -> Extensions and Updates Look for Github Extension for Visual Studio and Uninstall it
Never Mind as you can still work with Github
Now Restart Visual Studio.
Enjoy working on Team Explorer.

Add a project in TFS

I have Visual Studio Ultimate edition and need to add a project in TFS.
I want to make my local desktop as the TFS server.
My desktop specs:
Windows 7
Visual Studio 2010 Utlimate
I have no idea how to go about it and add a new project in TFS. I read a lot of blogs but didn't find any that lists something from scratch.
As in when I try to create a Team project in TFS, i get the server section as empty. How to configure my local desktop to act as a TFS server??
First things first, read this: http://msdn.microsoft.com/en-us/library/dd997788.aspx (Compatibility between Team Foundation clients and Team Foundation Server)
Second, you need to decide which version of TFS you are planning to run. Is your company paying for a version of it or are you planning on using the express edition available (2013)?
If your answer to that is TFS Express 2013, then I suggest you navigate to this link and download the installer. Run it and follow the instructions.
If you are planning a full licensed installation, you should familiarize yourself with the various components that come with it (Report server, Sharepoint, etc).
Here is a link to install and administration: http://www.microsoft.com/en-us/download/details.aspx?id=29035
Follow the following steps:
1.
If you haven't already, connect to your Visual Studio Online account and create your workspace folder.
2.Move the code you want to upload to the workspace folder.
3.Open your solution in Visual Studio.

Resources