|
|
|
@ -65,7 +65,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
@@ -65,7 +65,7 @@ namespace ICSharpCode.Decompiler.TypeSystem
|
|
|
|
|
compilation = new SimpleCompilation(mainAssembly, referencedAssemblies); |
|
|
|
|
// Primitive types are necessary to avoid assertions in ILReader.
|
|
|
|
|
// Fallback to MinimalCorlib to provide the primitive types.
|
|
|
|
|
if (compilation.FindType(KnownTypeCode.Void).Kind == TypeKind.Unknown || compilation.FindType(KnownTypeCode.Void).Kind == TypeKind.Unknown) { |
|
|
|
|
if (compilation.FindType(KnownTypeCode.Void).Kind == TypeKind.Unknown || compilation.FindType(KnownTypeCode.Int32).Kind == TypeKind.Unknown) { |
|
|
|
|
referencedAssemblies.Add(MinimalCorlib.Instance); |
|
|
|
|
compilation = new SimpleCompilation(mainAssembly, referencedAssemblies); |
|
|
|
|
} |
|
|
|
|