Beispiel #1
0
    static void Main(string[] args)
    {
        AssConfig config = new AssConfig();

        IList assemblyList = new ArrayList();
        IList outputList   = new ArrayList();

        config.loadBundles(assemblyList, outputList);
        AssemblyBundle assemblyBundle = new AssemblyBundle(assemblyList);

        IEnumerator outputEnum = outputList.GetEnumerator();

        while (outputEnum.MoveNext())
        {
            //String outputType = (String)outputEnum.Current;
            //Console.WriteLine(outputEnum.Current.GetType());
            OutputType outputType = (OutputType)outputEnum.Current;
            if (outputType.getOutputType() == "All")
            {
                showAllAssemblyDependencies(assemblyBundle, outputType.getFile());
            }
            else if (outputType.getOutputType() == "Analyzed")
            {
                showAllAnalyzedAssemblyDependencies(assemblyBundle, outputType.getFile());
            }
            else if (outputType.getOutputType() == "xml")
            {
                outputXml(assemblyBundle, outputType.getFile());
            }
        }
    }