none
Differences between versions of Microsoft.TeamFoundation.Client libraries - ComboTree.SetSelectedText(System.String) is missing

    Dotaz


  • Hi all!

    I have an issue with my code that connect to TFS/VSTS and writes work items from it.

    public FormSearchWorkItems(WorkItemStore workItemStore, string projectName)
        {
             InitializeComponent();
             WorkingItem = new WorkingItem();
    
             pickWorkItemsControl = new PickWorkItemsControl(workItemStore, false);
        }

    It worked well with TFS using old version of Microsoft.TeamFoundation.Client (12.0.0.0), but after an update to the newest Microsoft.TeamFoundation.Client (15.0.0.0), there is an expection for PickWorkItemsControl throwed:

    An unhandled exception of type 'System.MissingMethodException' occurred in Microsoft.TeamFoundation.WorkItemTracking.Controls.dll

    Additional information: Method not found: Void Microsoft.TeamFoundation.Client.ComboTree.SetSelectedText(System.String).

    So the problem is that there is missing SetSelectedText(System.string) method in the newest version of Microsoft.TeamFoundation.Client.dll

    Does anyone know the workaround of this problem please?

    22. června 2017 14:36

Odpovědi

  • Use the Microsoft.TeamFoundationServer.ExtendedClient NuGet package:

    https://www.nuget.org/packages/Microsoft.TeamFoundationServer.ExtendedClient/


    Robert Haken, Microsoft MVP ASP.NET/IIS, HAVIT, s.r.o., www.havit.cz, http://knowledge-base.havit.cz

    27. srpna 2017 13:37
    Moderátor