예제 #1
0
 public static AssemblyMetadata CreateFromFile(ModuleMetadata manifestModule, string path)
 {
     return(new AssemblyMetadata(manifestModule, moduleName => ModuleMetadata.CreateFromFile(Path.Combine(Path.GetDirectoryName(path), moduleName))));
 }
예제 #2
0
 /// <summary>
 /// Finds all modules of an assembly on a specified path and builds an instance of <see cref="AssemblyMetadata"/> that represents them.
 /// </summary>
 /// <param name="path">The full path to the assembly on disk.</param>
 /// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
 /// <exception cref="ArgumentException"><paramref name="path"/> is invalid.</exception>
 /// <exception cref="IOException">Error reading file <paramref name="path"/>. See <see cref="Exception.InnerException"/> for details.</exception>
 /// <exception cref="NotSupportedException">Reading from a file path is not supported by the platform.</exception>
 public static AssemblyMetadata CreateFromFile(string path)
 {
     return(CreateFromFile(ModuleMetadata.CreateFromFile(path), path));
 }