Exemplo n.º 1
0
    public static void OnBegin()
    {
        // clear generated enum files
        var writer = OpenFile(enumFile, false);

        writer.Close();

        JSMgr.ClearTypeInfo();

        if (Directory.Exists(JSMgr.csGeneratedDir))
        {
            string[] files = Directory.GetFiles(JSMgr.csGeneratedDir);
            for (int i = 0; i < files.Length; i++)
            {
                File.Delete(files[i]);
            }
        }
        else
        {
            Directory.CreateDirectory(JSMgr.csGeneratedDir);
        }
    }