public IAssembly LoadAssembly(string fullyQualifiedDll)
 {
     try
     {
         var assembly = new WrappedAssembly(Assembly.LoadFrom(fullyQualifiedDll));
         return(assembly);
     }
     catch (FileNotFoundException)
     {
         return(null);
     }
 }
 public IAssembly LoadAssembly(string fullyQualifiedDll)
 {
     try
     {
         var assembly = new WrappedAssembly(Assembly.LoadFrom(fullyQualifiedDll));
         return assembly;
     }
     catch (FileNotFoundException)
     {
         return null;
     }
 }
		static void Main(string[] args)
		{
			if (args.Length < 2)
			{
				Console.WriteLine("usage: SevenDigital.Tools.DependencyManager.exe pathContainingAssemblies startingassembly.dll");
				return;
			}

            var outputPath = args[0];
			var assembly = new WrappedAssembly(Assembly.LoadFrom(Path.Combine(outputPath, args[1])));

			var finder = new DependencyFinder(new AssemblyLoader());
			var dependencies = finder.AnalyseAssembly(assembly, outputPath);

			var logger = new Logger();
			PrintSummary(logger, dependencies);
			logger.ReadLine();
		}
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            if (args.Length < 2)
            {
                Console.WriteLine("usage: SevenDigital.Tools.DependencyManager.exe pathContainingAssemblies startingassembly.dll");
                return;
            }

            var outputPath = args[0];
            var assembly   = new WrappedAssembly(Assembly.LoadFrom(Path.Combine(outputPath, args[1])));

            var finder       = new DependencyFinder(new AssemblyLoader());
            var dependencies = finder.AnalyseAssembly(assembly, outputPath);

            var logger = new Logger();

            PrintSummary(logger, dependencies);
            logger.ReadLine();
        }