summaryrefslogtreecommitdiff
path: root/scripts/IceBoxUtil.py
diff options
context:
space:
mode:
authorJose <pepone@users.noreply.github.com>2023-02-22 16:47:01 +0100
committerGitHub <noreply@github.com>2023-02-22 16:47:01 +0100
commitf85c50cbec888cdcc6f8d2f20a50d381b929b320 (patch)
tree9fa155e1117ec0d0b296305fe233c449e388dbbe /scripts/IceBoxUtil.py
parentFix email link (diff)
downloadice-f85c50cbec888cdcc6f8d2f20a50d381b929b320.tar.bz2
ice-f85c50cbec888cdcc6f8d2f20a50d381b929b320.tar.xz
ice-f85c50cbec888cdcc6f8d2f20a50d381b929b320.zip
Rework .netstandard2.0 builds (#1442)
Diffstat (limited to 'scripts/IceBoxUtil.py')
-rw-r--r--scripts/IceBoxUtil.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/IceBoxUtil.py b/scripts/IceBoxUtil.py
index 4129717dde4..891a239c4c1 100644
--- a/scripts/IceBoxUtil.py
+++ b/scripts/IceBoxUtil.py
@@ -20,7 +20,7 @@ class IceBox(ProcessFromBinDir, Server):
# file.
#
if self.configFile:
- if isinstance(mapping, CSharpMapping) and (current.config.dotnetcore or current.config.framework):
+ if isinstance(mapping, CSharpMapping) and current.config.dotnet:
configFile = self.configFile.format(testdir=current.testsuite.getPath())
with open(configFile, 'r') as source:
framework = mapping.getTargetFramework(current)
@@ -28,9 +28,7 @@ class IceBox(ProcessFromBinDir, Server):
newConfigFile = "{}.{}".format(configFile, framework)
with open(newConfigFile, 'w') as target:
for line in source.readlines():
- if current.config.framework == "net6.0":
- line = line.replace("\\net45\\", "\\net6.0\\")
- elif current.config.dotnetcore:
+ if current.config.dotnet:
line = line.replace("\\net45\\", "\\netstandard2.0\\{0}\\".format(libframework))
target.write(line)
current.files.append(newConfigFile)
@@ -60,7 +58,7 @@ class IceBox(ProcessFromBinDir, Server):
args = Server.getEffectiveArgs(self, current, args)
if self.configFile:
mapping = self.getMapping(current)
- if isinstance(mapping, CSharpMapping) and (current.config.dotnetcore or current.config.framework):
+ if isinstance(mapping, CSharpMapping) and (current.config.dotnet or current.config.framework):
args.append("--Ice.Config={0}.{1}".format(self.configFile, mapping.getTargetFramework(current)))
else:
args.append("--Ice.Config={0}".format(self.configFile))