Skip to content

Commit

Permalink
Merge pull request #81690 from raulsntos/dotnet/hide-hostfxr-error
Browse files Browse the repository at this point in the history
C#: Hide hostfxr not found error
  • Loading branch information
YuriSizov committed Sep 15, 2023
2 parents fa31a9f + 394c0eb commit 5f1e56f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/mono/editor/hostfxr_resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,12 @@ bool get_dotnet_root_from_env(String &r_dotnet_root) {

bool godotsharp::hostfxr_resolver::try_get_path_from_dotnet_root(const String &p_dotnet_root, String &r_fxr_path) {
String fxr_dir = path::join(p_dotnet_root, "host", "fxr");
ERR_FAIL_COND_V_MSG(!DirAccess::exists(fxr_dir), false, "The host fxr folder does not exist: " + fxr_dir);
if (!DirAccess::exists(fxr_dir)) {
if (OS::get_singleton()->is_stdout_verbose()) {
ERR_PRINT("The host fxr folder does not exist: " + fxr_dir + ".");
}
return false;
}
return get_latest_fxr(fxr_dir, r_fxr_path);
}

Expand Down

0 comments on commit 5f1e56f

Please sign in to comment.