TFS API dll's of different versions(16,15,14) do not work in single project.

  • Thread starter Thread starter ShwetaPaatil
  • Start date Start date
S

ShwetaPaatil

Guest
Hi,

I have one project in a solution in which i am using TeamFoundation dll's of version 15 and in another project i am using TeamFoundation dll's of version 16.
in my third project i want to use these two projects which are having two different versions of TeamFoundation dll's.
but i am not able to use it. its giving me error that "Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies."

Also getting warning "Found conflicts between different versions of "Microsoft.TeamFoundation.Client" that could not be resolved."

How can i use two different versions of teamfoundation dll's in one project.

Required dll's:

Microsoft.TeamFoundation.Client
Microsoft.TeamFoundation.Common
Microsoft.TeamFoundation.WorkItemTracking.Client
Microsoft.TeamFoundation.WorkItemTracking.Common

As asked, I am sharing the code which I am using:

private void connectToServer(string serverName)
{
TfsTeamProjectCollection teamProjectCollection = new TfsTeamProjectCollection(new Uri(tfsServerName));
teamProjectCollection.Connect(ConnectOptions.None);
}


Any help is appreciated. Thanks in advance.

Continue reading...
 
Back
Top