We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 501cbbe + c0f3886 commit add127aCopy full SHA for add127a
src/runtime/moduleobject.cs
@@ -413,14 +413,6 @@ public static Assembly AddReference(string name)
413
{
414
assembly = AssemblyManager.LoadAssemblyFullPath(name);
415
}
416
- if (System.IO.File.Exists(name))
417
- {
418
- var zone = System.Security.Policy.Zone.CreateFromUrl(name);
419
- if (zone.SecurityZone != System.Security.SecurityZone.MyComputer)
420
421
- throw new Exception($"File is blocked (NTFS Security)");
422
- }
423
424
if (assembly == null)
425
426
throw new FileNotFoundException($"Unable to find assembly '{name}'.");
0 commit comments