// HACK to find installed platforms instead of using the built-in test // behavior of searching a framework snapshot. protected override void SearchForPlatforms(IList<PlatformInfo> platforms) { PlatformManagerImpl impl = new PlatformManagerImpl(); #if RESHARPER_50_OR_NEWER typeof(PlatformManagerImpl).GetField("myAllPlatforms", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(impl, new List<PlatformInfo>()); #endif typeof(PlatformManagerImpl).GetMethod("SearchForPlatforms", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(impl, new object[] { platforms }); }
// HACK to find installed platforms instead of using the built-in test // behavior of searching a framework snapshot. protected override void SearchForPlatforms(IList <PlatformInfo> platforms) { PlatformManagerImpl impl = new PlatformManagerImpl(); #if RESHARPER_50_OR_NEWER typeof(PlatformManagerImpl).GetField("myAllPlatforms", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(impl, new List <PlatformInfo>()); #endif typeof(PlatformManagerImpl).GetMethod("SearchForPlatforms", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(impl, new object[] { platforms }); }