コード例 #1
0
        private static void UnpackTemplate(string dir)
        {
            var bin = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            Debug.Assert(bin != null, "bin != null");

            var fs = new FileSystem();
            using (ZipInputStream s = new ZipInputStream(fs.File.OpenRead(Path.Combine(bin, "Compiler" ,"NodeMachinePluginTemplate.zip"))))
                s.UnpackToDirectory(dir, fs);
        }