vstest icon indicating copy to clipboard operation
vstest copied to clipboard

Use MEF for discovering ITestExplorerServiceClient...

Open halverson-dev opened this issue 10 years ago • 3 comments

I've added code to the dll that defines our ITestExplorerServiceClient that depends on Microsoft.VisualStudio.TestPlatform.ObjectModel.dll. This results in a MissingMethodException in LiveUnitTestingClientProvider.InitializeTestExtension because the call to Assembly.LoadFrom will find the object model dll on the probing path (see "The LoadFrom method has the following disadvantages" ... at https://msdn.microsoft.com/en-us/library/1009fa28(v=vs.110).aspx).

Also, it seems less than ideal to be materializing reflection info for all the types in the assembly every time we initialize the extension. An alternative would be to just use VS MEF.

halverson-dev avatar Oct 25 '16 21:10 halverson-dev

Parking this issue in post RC bucket. /cc @saikrishnav

codito avatar Oct 27 '16 07:10 codito

Based on our discussion - moving this to testimpact-u1

sbaid avatar Nov 03 '16 05:11 sbaid

This is being tracked external to this repo here: https://developercommunity.visualstudio.com/content/problem/145936/use-mef-for-discovering-itestexplorerserviceclient.html

snkota avatar Nov 07 '17 12:11 snkota