diff options
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 3f400541ee0..862860e2e50 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 version[0] >= 3 else "2.1") + self.defaultNetCoreFramework = "netcoreapp{}".format("3.0" if int(version[0]) >= 3 else "2.1") except: self.nugetPackageCache = None @@ -3479,8 +3479,9 @@ class CSharpMapping(Mapping): else: path = os.path.join(current.testcase.getPath(current), current.getBuildDir(exe)) - useDotnetExe = current.config.dotnetcore and (current.config.framework in ["netcoreapp2.1", "netcoreapp2.2"] or - process.isFromBinDir()) + useDotnetExe = (current.config.dotnetcore and + (current.config.testTargetFramework in ["netcoreapp2.1", "netcoreapp2.2"] or + process.isFromBinDir())) command = "" if useDotnetExe: command += "dotnet " |