/// <summary> /// The known types seems to have a bug if added to a typed query. /// We should not pass this for query execution and only doing /// generic etw queries. /// </summary> /// <returns></returns> public static Type[] GetKnowntypesforPlayback() { List <Type> types = new List <Type>(); foreach (var path in ManifestCompiler.GetGeneratedAssemblies()) { types.AddRange(Assembly.LoadFile(path).GetTypes()); } return(types.Distinct().ToArray()); }
private static string[] GetAssemblies() { List <string> assemblies = new List <string>(); assemblies.Add("mscorlib.dll"); assemblies.Add("System.dll"); assemblies.Add("System.Core.dll"); foreach (string location in GetAssemblyLocations()) { assemblies.Add(location); } foreach (string assembly in ManifestCompiler.GetGeneratedAssemblies()) { assemblies.Add(assembly); } return(assemblies.ToArray()); }