Microsoft.TeamFoundation.VersionControl.Client.Item.DownloadFile() is missing


  • Hello,

    I have written this :

    VersionControlServer versionControl = (VersionControlServer)_tfs.GetService(typeof(VersionControlServer));

                string serverItem = string.Concat(@"$/", _TeamProjetName, "/test/", FileName);

                Item i = versionControl.GetItem(serverItem);
                Stream st = i.DownloadFile();

                StreamReader sr = new StreamReader(st);

                string XML = sr.ReadToEnd();

                return XML;

    So depending on the installation of Visual Studio, i've this error :
    Microsoft.TeamFoundation.VersionControl.Client.Item.DownloadFile() MissingMethodException

    In API, there is just this method :
    Microsoft.TeamFoundation.VersionControl.Client.Item.DownloadFile(string fileName) : Cf this url. But when decompile Microsoft.TeamFoundation.VersionControl.Client.dll, I verify that Microsoft.TeamFoundation.VersionControl.Client.Item.DownloadFile() method exists.

    Someone has the same problem?


    • Moved by Nancy Shao Thursday, March 05, 2009 10:23 AM wrong frum (Moved from Visual Studio Extensibility to Team Foundation Server - Version Control)
    Monday, March 02, 2009 3:55 PM


All replies