Skip to content

Commit

Permalink
Fix Debug solution executable path on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jspelletier committed Oct 10, 2024
1 parent 69b7043 commit 1629aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sharpmake/DebugProjectGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public virtual string GetSharpmakeExecutableFullPath()
{
string sharpmakeApplicationExePath = Process.GetCurrentProcess().MainModule.FileName;

if (Util.IsRunningInMono())
if (Util.IsRunningInMono() || Util.GetExecutingPlatform() == Platform.mac)
{
// When running within Mono, sharpmakeApplicationExePath will at this point wrongly refer to the
// mono (or mono-sgen) executable. Fix it so that it points to Sharpmake.Application.exe.
Expand Down

0 comments on commit 1629aa2

Please sign in to comment.