ReGenerateProjectFilesHelper.cs 528 B

12345678910111213141516171819202122
  1. using UnityEditor;
  2. using UnityEngine;
  3. namespace ET
  4. {
  5. public static class ReGenerateProjectFilesHelper
  6. {
  7. [InitializeOnLoadMethod]
  8. [MenuItem("ET/Loader/ReGenerateProjectFiles")]
  9. public static void Run()
  10. {
  11. Unity.CodeEditor.CodeEditor.CurrentEditor.SyncAll();
  12. foreach (string s in FileHelper.GetAllFiles(".", "Ignore.ET*.csproj"))
  13. {
  14. System.IO.File.Delete(s);
  15. }
  16. Debug.Log("regenerate csproj");
  17. }
  18. }
  19. }