diff options
author | Benoit Foucher <benoit@zeroc.com> | 2020-03-06 12:16:20 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2020-03-06 12:16:20 +0100 |
commit | 12cbc8c23b7fd6ff16ab467732c6c025ccfea1e6 (patch) | |
tree | 3036bcd5a3b3c0157e4aac3515bf69929a675a33 /scripts/Util.py | |
parent | Fixed Windows build error caused by unreferenced local variable (diff) | |
download | ice-12cbc8c23b7fd6ff16ab467732c6c025ccfea1e6.tar.bz2 ice-12cbc8c23b7fd6ff16ab467732c6c025ccfea1e6.tar.xz ice-12cbc8c23b7fd6ff16ab467732c6c025ccfea1e6.zip |
Fixed C# mappping to use .NET Core 3.1
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index d3103683b13..2e42bc4f03b 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -216,7 +216,7 @@ class Platform(object): version = run("dotnet --version").split(".") self.nugetPackageCache = re.search("info : global-packages: (.*)", run("dotnet nuget locals --list global-packages")).groups(1)[0] - self.defaultNetCoreFramework = "netcoreapp{}".format("3.0" if int(version[0]) >= 3 else "2.1") + self.defaultNetCoreFramework = "netcoreapp{}".format("3.1" if int(version[0]) >= 3 else "2.1") except: self.nugetPackageCache = None @@ -3549,8 +3549,7 @@ class CSharpMapping(Mapping): path = os.path.join(current.testcase.getPath(current), current.getBuildDir(exe)) useDotnetExe = (current.config.dotnetcore and - (current.config.testTargetFramework in ["netcoreapp2.1", "netcoreapp2.2"] or - process.isFromBinDir())) + (current.config.testTargetFramework in ["netcoreapp2.1"] or process.isFromBinDir() or isinstance(platform, Darwin))) command = "" if useDotnetExe: command += "dotnet " |