From 273df44e1db003628bb221bfd898450ac7ed7b01 Mon Sep 17 00:00:00 2001 From: Treer Date: Tue, 31 Jan 2023 16:23:17 +1100 Subject: Qualify Console's namespace to avoid mixup with plugin's objects Avoid error when a plugin contains a class called "Console": Godot.SourceGenerators\Godot.SourceGenerators.GodotPluginsInitializerGenerator\GodotPlugins.Game.generated.cs(32,25): error CS0117: 'Console' does not contain a definition for 'Error' --- .../Godot.SourceGenerators/GodotPluginsInitializerGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GodotPluginsInitializerGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GodotPluginsInitializerGenerator.cs index 813bdf1e9f..ce654cb4b8 100644 --- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GodotPluginsInitializerGenerator.cs +++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GodotPluginsInitializerGenerator.cs @@ -48,7 +48,7 @@ namespace GodotPlugins.Game } catch (Exception e) { - Console.Error.WriteLine(e); + System.Console.Error.WriteLine(e); return false.ToGodotBool(); } } -- cgit v1.2.3