Skip to content

Commit

Permalink
Fix bug in VS Integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladD2 committed Dec 10, 2015
1 parent 3a04882 commit 57c4b84
Showing 1 changed file with 7 additions and 8 deletions.
Expand Up @@ -265,12 +265,6 @@ namespace Nemerle.Completion2.Factories
SR.Assembly.LoadFrom(path)
else
{
def reflect = Assembly.ReflectionOnlyLoadFrom(path);
def fullName = reflect.FullName;

when (assemblyByStrongName.ContainsKey(fullName) && !assemblyWithoutContext.Contains(fullName))
return SR.Assembly.LoadFrom(path);

try { NonBlockingAssemblyLoadFrom(path) }
catch
{
Expand All @@ -284,9 +278,14 @@ namespace Nemerle.Completion2.Factories

static NonBlockingAssemblyLoadFrom(path : string) : Assembly
{
def assemblyName = AssemblyName.GetAssemblyName(path);
def fullName = assemblyName.FullName;

when (assemblyByStrongName.ContainsKey(fullName) && !assemblyWithoutContext.Contains(fullName))
return SR.Assembly.LoadFrom(path);

def asmBytes = ReadAllBytes(path);

def symPath = ChangeExtension(path, ".pdb");
def symPath = ChangeExtension(path, ".pdb");
def symBytes = if (Exists(symPath)) ReadAllBytes(symPath) else null;

def asm =
Expand Down

0 comments on commit 57c4b84

Please sign in to comment.