You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C#: Use export platform to determine the target OS and log errors
- Use the export platform's `get_os_name` to determine the platform name instead of guessing from the features.
- Use the export platform's `add_message` to add error messages instead of a custom error dialog. Integrates .NET error messages with the export log dialog.
_maybeLastExportError=$"This project contains C# files but no solution file was found at the following path: {GodotSharpDirs.ProjectSlnPath}\n"+
96
-
"A solution file is required for projects with C# files. Please ensure that the solution file exists in the specified location and try again.";
107
+
GetExportPlatform().AddMessage(EditorExportPlatform.ExportMessageType.Error,"Export .NET Project",$"This project contains C# files but no solution file was found at the following path: {GodotSharpDirs.ProjectSlnPath}\n"+
108
+
"A solution file is required for projects with C# files. Please ensure that the solution file exists in the specified location and try again.");
97
109
thrownewInvalidOperationException($"{path} is a C# file but no solution file exists.");
0 commit comments