﻿namespace MvcTurbine.ComponentModel {
    using System;

    /// <summary>
    /// Defines common assemblies to filter. These assemblies are:
    ///     System, mscorlib, Microsoft, WebDev, CppCodeProvider).
    /// </summary>
    [Serializable]
    public class CommonAssemblyFilter : AssemblyFilter {
        /// <summary>
        /// Creates an instance and applies the default filters.
        /// Sets the following filters as default, (System, mscorlib, Microsoft, WebDev, CppCodeProvider).
        /// </summary>
        public CommonAssemblyFilter() {
            AddDefaults();
        }

        /// <summary>
        /// Sets the following filters as default, (System, mscorlib, Microsoft, WebDev, CppCodeProvider).
        /// </summary>
        private void AddDefaults() {
            AddFilter("System");
            AddFilter("mscorlib");
            AddFilter("Microsoft");

            AddFilter("MvcTurbine");
            AddFilter("MvcTurbine.Web");

            // Ignore the Visual Studio extra assemblies!
            AddFilter("WebDev");
            AddFilter("CppCodeProvider");
        }
    }
}
﻿namespace MvcTurbine.ComponentModel {
    using System;

    /// <summary>
    /// Defines common assemblies to filter. These assemblies are:
    ///     System, mscorlib, Microsoft, WebDev, CppCodeProvider).
    /// </summary>
    [Serializable]
    public class CommonAssemblyFilter : AssemblyFilter {
        /// <summary>
        /// Creates an instance and applies the default filters.
        /// Sets the following filters as default, (System, mscorlib, Microsoft, WebDev, CppCodeProvider).
        /// </summary>
        public CommonAssemblyFilter() {
            AddDefaults();
        }

        /// <summary>
        /// Sets the following filters as default, (System, mscorlib, Microsoft, WebDev, CppCodeProvider).
        /// </summary>
        private void AddDefaults() {
            AddFilter("System");
            AddFilter("mscorlib");
            AddFilter("Microsoft");

            AddFilter("MvcTurbine,");
            AddFilter("MvcTurbine.Web");

            // Ignore the Visual Studio extra assemblies!
            AddFilter("WebDev");
            AddFilter("CppCodeProvider");
        }
    }
}
Add a comma to the MvcTurbine filters, which will prevent MvcTurbine from being included but not block out MvcTurbine.*.
Add a comma to the MvcTurbine filters, which will prevent MvcTurbine from being included but not block out MvcTurbine.*.
