Esempio n. 1
0
 public override Assembly LoadAssembly(string name)
 {
     try
     {
         return(_defaultContext.Load(name));
     }
     catch (FileNotFoundException)
     {
         return(_projectAssemblyLoader.Load(name, this) ??
                _nugetAssemblyLoader.Load(name, this));
     }
 }
Esempio n. 2
0
            public override Assembly LoadAssembly(string name)
            {
                try
                {
                    return(_defaultContext.Load(name));
                }
#if ASPNET50
                catch (FileNotFoundException)
#else
                catch (FileLoadException)
#endif
                {
                    return(_projectAssemblyLoader.Load(name, this) ??
                           _nugetAssemblyLoader.Load(name, this));
                }
            }
Esempio n. 3
0
 public override Assembly LoadAssembly(string name)
 {
     return(_projectAssemblyLoader.Load(name, this) ??
            _nugetAssemblyLoader.Load(name, this) ??
            _parent.Load(name));
 }