зеркало из https://github.com/mono/ikvm-fork.git
Exit if AssemblyResolver.Init() returns an error and load ikvmstub.exe assembly via AssemblyResolver to get error checking (and mscorlib version checking).
This commit is contained in:
Родитель
5649a786d8
Коммит
b7c7d0139c
|
@ -103,8 +103,11 @@ static class NetExp
|
|||
references.Add(assemblyNameOrPath);
|
||||
}
|
||||
AssemblyResolver resolver = new AssemblyResolver();
|
||||
resolver.Init(StaticCompiler.Universe, nostdlib, references, libpaths);
|
||||
StaticCompiler.Universe.LoadFile(typeof(NetExp).Assembly.Location);
|
||||
if (resolver.Init(StaticCompiler.Universe, nostdlib, references, libpaths) != 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
resolver.LoadFile(typeof(NetExp).Assembly.Location);
|
||||
Dictionary<string, Assembly> cache = new Dictionary<string, Assembly>();
|
||||
foreach (string reference in references)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче