From d0b329b5aed6af8df8617b3c2d5ee20307afddb0 Mon Sep 17 00:00:00 2001 From: David <2889367+daveleroy@users.noreply.github.com> Date: Sun, 22 Dec 2024 04:34:33 -0800 Subject: [PATCH] csharp: fixes installer on mac and added building project using pre_debug_task --- examples/__init__.py | 1 + .../{my_proj.sublime-project => csharp.sublime-project} | 9 ++++++--- modules/adapters/csharp.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) rename examples/csharp/{my_proj.sublime-project => csharp.sublime-project} (68%) diff --git a/examples/__init__.py b/examples/__init__.py index 84e4367..0e053ec 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -2,6 +2,7 @@ 'examples/sublime_debug/sublime.sublime-project', 'examples/cpp/cpp.sublime-project', 'examples/go/go.sublime-project', + 'examples/csharp/csharp.sublime-project', 'examples/mock/mock.sublime-project', 'examples/php/php.sublime-project', 'examples/python/python.sublime-project', diff --git a/examples/csharp/my_proj.sublime-project b/examples/csharp/csharp.sublime-project similarity index 68% rename from examples/csharp/my_proj.sublime-project rename to examples/csharp/csharp.sublime-project index fd5d257..e1f3aec 100644 --- a/examples/csharp/my_proj.sublime-project +++ b/examples/csharp/csharp.sublime-project @@ -4,15 +4,18 @@ "path": ".", } ], - "build_systems": [ + "debugger_tasks": [ { - "name": "build", + "name": "Build", "cmd": ["dotnet", "build"], + "working_dir": "${folder}", } ], "debugger_configurations": [ { - "name": ".NET Core Launch (console)", + "pre_debug_task": "Build", + + "name": "CSharp: NET Core Launch (console)", "type": "coreclr", "request": "launch", "program": "${folder}/bin/Debug/net8.0/csharp.dll", diff --git a/modules/adapters/csharp.py b/modules/adapters/csharp.py index 8c77642..14d2ca6 100644 --- a/modules/adapters/csharp.py +++ b/modules/adapters/csharp.py @@ -14,7 +14,7 @@ class CSharpInstaller(util.GitSourceInstaller): HOSTS_PLATFORMS = { 'windows': 'win32', 'linux': 'linux', - 'osx': 'osx', + 'osx': 'darwin', } HOST_ARCHS = {