コード例 #1
0
        static void GetApplicationAssemblies(string appDir, FilePackResult filePackResult)
        {
            //Logger.Info(string.Format("Scanning directory [{0}]...", directory));
            var files = Directory.GetFiles(appDir);

            foreach (var file in files)
            {
                if (FileScanner.IsAssembly(file))
                {
                    filePackResult.AddApplicationAssembly(file);
                }
            }
        }
コード例 #2
0
        // 获取应用程序目录下所有程序集(排除 JointCode.Addins.dll 自身)
        static void GetApplicationAssemblies(string appDir, ScanFilePackResult scanFilePackResult)
        {
            //Logger.Info(string.Format("Scanning directory [{0}]...", directory));
            var files = Directory.GetFiles(appDir);

            foreach (var file in files)
            {
                if (FileScanner.IsAssembly(file) && !file.EndsWith(FileScanner.ThisAssemblyName, StringComparison.InvariantCultureIgnoreCase))
                {
                    scanFilePackResult.AddApplicationAssembly(file);
                }
            }
        }