/// <summary> /// This is used to reset the target platform information if mscorlib is specified as one of the /// reference assemblies or documented assemblies. /// </summary> /// <param name="assembly">The system assembly for the target platform (mscorlib)</param> private static void ResetMscorlib(AssemblyNode assembly) { TargetPlatform.Clear(); CoreSystemTypes.Clear(); CoreSystemTypes.SystemAssembly = assembly; CoreSystemTypes.Initialize(true, false); }
/// <summary> /// This is used to reset the target platform information if mscorlib is specified as one of the /// reference assemblies or documented assemblies. /// </summary> /// <param name="assembly">The system assembly for the target platform (mscorlib)</param> private static void ResetMscorlib(AssemblyNode assembly) { TargetPlatform.Clear(); CoreSystemTypes.Clear(); CoreSystemTypes.SystemAssembly = assembly; TargetPlatform.PlatformAssembliesLocation = Path.GetDirectoryName(assembly.Location); CoreSystemTypes.Initialize(true, false); }