Beispiel #1
0
        private void GenerateAssembly(DaoAssemblyGenerator generator, DirectoryInfo srcDir, out string dest)
        {
            GeneratedAssemblyInfo assembly = generator.Compile(srcDir.FullName, "{0}.dll"._Format(Namespace));
            FileInfo assemblyFile          = assembly.GetAssembly().GetFileInfo();

            dest = Path.Combine(this.WorkspaceFolder, "bin", assemblyFile.Name);
            DirectoryInfo destDir = new DirectoryInfo(Path.Combine(this.WorkspaceFolder, "bin"));

            if (!destDir.Exists)
            {
                Directory.CreateDirectory(destDir.FullName);
            }
            assemblyFile.CopyTo(dest);
        }