/// <summary>
 /// Given an assembly name, crack it open and retrieve the TargetFrameworkAttribute
 /// assemblies and  the list of scatter files.
 /// </summary>
 internal static FrameworkName GetTargetFrameworkAttribute(string path)
 {
     using (AssemblyInformation import = new AssemblyInformation(path))
     {
         return(import.FrameworkNameAttribute);
     }
 }
        internal static void GetAssemblyMetadata(string path, out AssemblyNameExtension[] dependencies, out string[] scatterFiles)
        {
            AssemblyInformation information = null;

            using (information = new AssemblyInformation(path))
            {
                dependencies = information.Dependencies;
                scatterFiles = information.Files;
            }
        }
        /// <summary>
        /// Given an assembly name, crack it open and retrieve the list of dependent
        /// assemblies and  the list of scatter files.
        /// </summary>
        /// <param name="path">Path to the assembly.</param>
        /// <param name="dependencies">Receives the list of dependencies.</param>
        /// <param name="scatterFiles">Receives the list of associated scatter files.</param>
        /// <param name="frameworkName">Gets the assembly name.</param>
        internal static void GetAssemblyMetadata
        (
            string path,
            out AssemblyNameExtension[] dependencies,
            out string[] scatterFiles,
            out FrameworkName frameworkName
        )
        {
            AssemblyInformation import = null;

            using (import = new AssemblyInformation(path))
            {
                dependencies  = import.Dependencies;
                frameworkName = import.FrameworkNameAttribute;
                scatterFiles  = NativeMethodsShared.IsWindows ? import.Files : null;
            }
        }
示例#4
0
 /// <summary>
 /// Given an assembly name, crack it open and retrieve the TargetFrameworkAttribute
 /// assemblies and  the list of scatter files.
 /// </summary>
 internal static FrameworkName GetTargetFrameworkAttribute(string path)
 {
     using (AssemblyInformation import = new AssemblyInformation(path))
     {
         return import.FrameworkNameAttribute;
     }
 }
示例#5
0
 /// <summary>
 /// Given an assembly name, crack it open and retrieve the list of dependent 
 /// assemblies and  the list of scatter files.
 /// </summary>
 /// <param name="path">Path to the assembly.</param>
 /// <param name="dependencies">Receives the list of dependencies.</param>
 /// <param name="scatterFiles">Receives the list of associated scatter files.</param>
 internal static void GetAssemblyMetadata
 (
     string path,
     out AssemblyNameExtension[] dependencies,
     out string[] scatterFiles,
     out FrameworkName frameworkName
 )
 {
     AssemblyInformation import = null;
     using (import = new AssemblyInformation(path))
     {
         dependencies = import.Dependencies;
         scatterFiles = import.Files;
         frameworkName = import.FrameworkNameAttribute;
     }
 }