Skip to content

Commit cc09f29

Browse files
committed
Create rsp file menu item
1 parent fa52b70 commit cc09f29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Code/Editor/MenuItems/BaseMenuItems.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,13 @@ private static void GenerateGuid()
136136
{
137137
Debug.Log(Guid.NewGuid().ToString("N"));
138138
}
139+
140+
[MenuItem(MAIN_MENU_NAME + "Misc/Create csc.rsp")]
141+
private static void CreateRspFile()
142+
{
143+
string text = "-nowarn:8632,8524/n/r-warnaserror:0108,0114,8509";
144+
File.WriteAllText($"{AssetDatabaseExt.ASSET_FOLDER}csc.rsp", text);
145+
AssetDatabase.Refresh();
146+
}
139147
}
140148
}

0 commit comments

Comments
 (0)