Exemplo n.º 1
0
        /// <summary>
        /// Parses the specified assembly.
        /// </summary>
        /// <param name="assembly">The assembly.</param>
        /// <param name="sourceFiles">The source files.</param>
        /// <returns></returns>
        public static IEnumerable <DnnPackage> Parse(Assembly assembly, ITaskItem[] sourceFiles)
        {
            var packageReflector = new ReflectPackages(assembly);
            var packages         = packageReflector.GetPackages();

            ReflectComponentModules.AssignComponents(assembly, packages, sourceFiles);

            return(packages);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Parses the specified assembly.
        /// </summary>
        /// <param name="assembly">The assembly.</param>
        /// <param name="sourceFiles">The source files.</param>
        /// <returns></returns>
        public static IEnumerable<DnnPackage> Parse(Assembly assembly, ITaskItem[] sourceFiles)
        {
            var packageReflector = new ReflectPackages(assembly);
            var packages = packageReflector.GetPackages();

            ReflectComponentModules.AssignComponents(assembly, packages, sourceFiles);

            return packages;
        }