Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
665 views
in Technique[技术] by (71.8m points)

vs extensibility - Where is Microsoft.VisualStudio.TeamFoundation.VersionControl.dll in Visual Studio 2015

I'm migrating my own TFS logging extension to VS 2015 and run into many dependency issues. Most of them I was able to get rid off by installing Microsoft.TeamFoundationServer.ExtendedClient nuget package.

However there's still one missing reference, the VersionControlExtclass

versionControlExt =
                    _applicationObject.GetObject("Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlExt")
                    as VersionControlExt;

According to documentation, it is located in Microsoft.VisualStudio.TeamFoundation.VersionControl.dll, but I can't find this file at all. Does anyone know where to get it from or how to change the above code to get it working with VS 2015?

I'm using Visual Studio 2015 Professional, 14.0.23107.0 D14REL version.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Ok, I've finally found the issue.

The one that is in GAC (c:WindowsMicrosoft.NETassemblyGAC_MSILMicrosoft.VisualStudio.TeamFoundation.VersionControl) is the old version (11.0.50727.1) of the library. It gets there with VS 2015 installation, but it isn't the right one.

The one that is used by Visual Studio Team Explorer extension is located in c:Program Files (x86)Microsoft Visual Studio 14.0Common7IDEExtensionsoglzibax.qr0. It's version is 14.0.23102.0.

While I was trying to use the old one, I was constantly getting MissingMethodException.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...