static void Build(E.Engine engine, string dir, string name, string version) { dir = IO.Path.Combine(dir, name); Create(dir, name, version); if (!engine.BuildProjectFile(IO.Path.Combine(dir, name + ".csproj"))) { throw new S.Exception("build failed"); } }
static void Build(E.Engine engine, string dir, string name, string version, string outDir) { dir = IO.Path.Combine(dir, name); Create(dir, name, version); if (!engine.BuildProjectFile(IO.Path.Combine(dir, name + ".csproj"))) { throw new S.Exception("build failed"); } var path = IO.Path.Combine(dir, "bin\\Debug"); var files = IO.Directory.GetFiles(path); // copy all files. foreach (var file in files) { var outFile = IO.Path.Combine(outDir, IO.Path.GetFileName(file)); IO.File.Copy(file, outFile, true); } }