Skip to content

Commit

Permalink
Create rsp file menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
oleghcp committed Sep 24, 2024
1 parent fa52b70 commit cc09f29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Code/Editor/MenuItems/BaseMenuItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,13 @@ private static void GenerateGuid()
{
Debug.Log(Guid.NewGuid().ToString("N"));
}

[MenuItem(MAIN_MENU_NAME + "Misc/Create csc.rsp")]
private static void CreateRspFile()
{
string text = "-nowarn:8632,8524/n/r-warnaserror:0108,0114,8509";
File.WriteAllText($"{AssetDatabaseExt.ASSET_FOLDER}csc.rsp", text);
AssetDatabase.Refresh();
}
}
}

0 comments on commit cc09f29

Please sign in to comment.