diff options
author | Jose <jose@zeroc.com> | 2019-09-26 20:30:28 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-09-26 20:30:28 +0200 |
commit | 90a5f7cc0e550028d2790aad14c2ba7c6ada6b9a (patch) | |
tree | 842ee2d57bb17b8b21ab0fce40fb0290d2582f71 /scripts | |
parent | CSharp build instruction updates (diff) | |
download | ice-90a5f7cc0e550028d2790aad14c2ba7c6ada6b9a.tar.bz2 ice-90a5f7cc0e550028d2790aad14c2ba7c6ada6b9a.tar.xz ice-90a5f7cc0e550028d2790aad14c2ba7c6ada6b9a.zip |
Fix default .NET Core version to match Directory.Build.props setting
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 389d00316d6..fb0a4a769ef 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(version[0], version[1]) + self.defaultNetCoreFramework = "netcoreapp{}".format("3.0" if version[0] >= 3 else "2.1") except: self.nugetPackageCache = None |