Beispiel #1
0
        private bool ExcludeFiles(IVsdManagedCollection items)
        {
            bool result = false;

            foreach (object thing in items)
            {
                if (thing is IVsdFile)
                {
                    IVsdFile file = thing as IVsdFile;
                    if (file.IsDependency && !file.Exclude)
                    {
                        Log("    File " + file.SourcePath);
                        file.Exclude = true;
                        result       = true;
                    }
                }
                else if (thing is IVsdAssembly)
                {
                    IVsdAssembly assy = thing as IVsdAssembly;
                    if (assy.IsDependency && !assy.Exclude)
                    {
                        Log("    Assembly " + assy.SourcePath);
                        assy.Exclude = true;
                        result       = true;
                    }
                }
                else
                {
                    Log("Unknown type.");
                }
            }
            return(result);
        }
Beispiel #2
0
        private bool ExcludeMergeModules(IVsdManagedCollection items)
        {
            bool result = false;

            foreach (IVsdModule item in items)
            {
                if (item.IsDependency && !item.Exclude)
                {
                    Log("    Module " + item.SourcePath);
                    item.Exclude = true;
                    result       = true;
                }
            }
            return(result);
        }