Imported Upstream version 5.16.0.100

Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-08-07 15:19:03 +00:00
parent 0a9828183b
commit 7d7f676260
4419 changed files with 170950 additions and 90273 deletions

View File

@ -542,8 +542,12 @@ class MakeBundle {
if (!Directory.Exists (path))
Error ($"The specified SDK path does not exist: {path}");
runtime = Path.Combine (sdk_path, "bin", "mono");
if (!File.Exists (runtime))
Error ($"The SDK location does not contain a {path}/bin/mono runtime");
if (!File.Exists (runtime)){
if (File.Exists (runtime + ".exe"))
runtime += ".exe";
else
Error ($"The SDK location does not contain a {path}/bin/mono runtime");
}
lib_path = Path.Combine (path, "lib", "mono", "4.5");
if (!Directory.Exists (lib_path))
Error ($"The SDK location does not contain a {path}/lib/mono/4.5 directory");