Skip to content

Commit 79b47b4

Browse files
committed
feat: publish assembly as dll
1 parent 9366513 commit 79b47b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Packages/CSharpCompilerSettings/Editor/InspectorGUI.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ private static void OnPostHeaderGUI(Editor editor)
183183
needToSaveSettings = true;
184184
_assetPath = null;
185185
}
186+
187+
if (GUILayout.Button(s_PublishText))
188+
{
189+
_assetPath = null;
190+
s_AsmdefPathToPublish = importer.assetPath;
191+
s_AssemblyNameToPublish = Core.GetAssemblyName(importer.assetPath);
192+
Core.LogInfo("<b><color=#22aa22>Request to publish dll:</color> {0}</b>", s_AssemblyNameToPublish);
193+
194+
importer.SaveAndReimport();
195+
}
186196
}
187197

188198
GUILayout.EndVertical();

0 commit comments

Comments
 (0)