Instead of trying to detect the framework using Assembly.Load Method, we should use something like this
AppDomain.CurrentDomain.GetAssemblies().Any(a => a.GetName().Name = "Microsoft.VisualStudio.QualityTools.UnitTestFramework")
Because Assembly.Load works only with the FullName assembly and not the short name.
Thank you
Phil
Comments: ** Comment from web user: dennisdoomen **
AppDomain.CurrentDomain.GetAssemblies().Any(a => a.GetName().Name = "Microsoft.VisualStudio.QualityTools.UnitTestFramework")
Because Assembly.Load works only with the FullName assembly and not the short name.
Thank you
Phil
Comments: ** Comment from web user: dennisdoomen **
Did you test that with all frameworks?