Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2.2beta3 Cannot find dotnet CLI executable. Fallback to MSBuild from Mono #38985

Closed
van800 opened this issue May 23, 2020 · 4 comments · Fixed by #45715
Closed

3.2.2beta3 Cannot find dotnet CLI executable. Fallback to MSBuild from Mono #38985

van800 opened this issue May 23, 2020 · 4 comments · Fixed by #45715

Comments

@van800
Copy link
Contributor

van800 commented May 23, 2020

3.2.2beta3
MACOSX

Issue description:
Create a new empty project, add one C# script.
Set Build tool dotnet CLI in Godot settings. Try to build. Get
modules/mono/glue/gd_glue.cpp:250 Cannot find dotnet CLI executable. Fallback to MSBuild from Mono

In terminal:

dotnet --version
3.1.102
@neikeq neikeq added this to the 4.0 milestone May 23, 2020
@neikeq neikeq added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label May 23, 2020
@van800
Copy link
Contributor Author

van800 commented May 23, 2020

From what I see, likely UnixFileHasExecutableAccess doesn't work on Mac.

@raineszm
Copy link

raineszm commented Feb 4, 2021

I think I'm having this issue with 3.2.4rc1 on Big Sur. On my system it looks like the problem is that dotnet is not in $PATH when running Godot from the finder, which believe defaults to /usr/bin:/bin:/usr/sbin:/sbin or some permutation of that on MacOS.

However if I run Godot from the command line as /Applications/Godot_mono.app/Contents/MacOS/Godot -p everything works fine.

For now I've set up a trampoline with Platypus to set path and then run Godot

#!/bin/sh
export PATH="/usr/local/bin:$PATH"
/Applications/Godot_mono.app/Contents/MacOS/Godot -p

but it seems like this can be fixed in Godot itself, either by adding /usr/local/bin to PATH in the Plist file, expanding on the code that searches for the dotnet cli, or just letting the user manually specify the path to the dotnet cli.

@Calinou
Copy link
Member

Calinou commented Feb 4, 2021

cc @bruvzg

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label May 31, 2021
@Noah-Huppert
Copy link

fyi for others looking for a solution my problem was similar, but ended up being because on linux my Godot.desktop file I made didn't include the custom PATH modification that was in my shell profile. So I had to modify the .desktop file's Exec property to setup the PATH env var so dotnet was accessible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants