summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-09-26 21:28:04 +0200
committerJose <jose@zeroc.com>2019-09-26 21:28:04 +0200
commitce51f9b93936858d187b7bcc2cdcb230eccdc81e (patch)
treede232363d0c4004d71383da53723cfd296963111 /scripts/Util.py
parentFix default .NET Core version to match Directory.Build.props setting (diff)
downloadice-ce51f9b93936858d187b7bcc2cdcb230eccdc81e.tar.bz2
ice-ce51f9b93936858d187b7bcc2cdcb230eccdc81e.tar.xz
ice-ce51f9b93936858d187b7bcc2cdcb230eccdc81e.zip
Test with .NET Core native binaries when available
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index fb0a4a769ef..3f400541ee0 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -3479,10 +3479,18 @@ class CSharpMapping(Mapping):
else:
path = os.path.join(current.testcase.getPath(current), current.getBuildDir(exe))
- if current.config.dotnetcore:
- return "dotnet " + os.path.join(path, exe) + ".dll " + args
- else:
- return os.path.join(path, exe) + ".exe " + args
+ useDotnetExe = current.config.dotnetcore and (current.config.framework in ["netcoreapp2.1", "netcoreapp2.2"] or
+ process.isFromBinDir())
+ command = ""
+ if useDotnetExe:
+ command += "dotnet "
+ command += os.path.join(path, exe)
+ if useDotnetExe:
+ command += ".dll "
+ elif isinstance(platform, Windows):
+ command += ".exe"
+ command += " {}".format(args)
+ return command
def getSDKPackage(self):
return "system-images;android-27;google_apis;x86"