public override Assembly LoadAssemblyFromPath(string path) { Stream stream = VirtualFilesystem.GetFile(path); if (stream == null) { throw new FileNotFoundException( string.Format("could not find assembly: {0} (check the {1})", path, VirtualFilesystem.Name() ) ); } return(new AssemblyPart().Load(stream)); }
public override Stream OpenInputFileStream(string path) { Stream result = VirtualFilesystem.GetFile(GetFullPath(path)); if (result == null) { throw new IOException( String.Format("file {0} not found (check the {1})", path, VirtualFilesystem.Name() ) ); } return(result); }
public override bool FileExists(string path) { return(VirtualFilesystem.GetFile(path) != null); }