aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-12-01 13:46:22 +0300
committerArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-12-01 13:46:22 +0300
commit7a97cafed5761149784e0b0ac47983ce9e88a1a4 (patch)
treeacf43d8d4d84d8aef846ac688e343f227b51e702 /eclass
parentinstalling mono.snk into 'mono' container (diff)
downloaddotnet-7a97cafed5761149784e0b0ac47983ce9e88a1a4.tar.gz
dotnet-7a97cafed5761149784e0b0ac47983ce9e88a1a4.tar.bz2
dotnet-7a97cafed5761149784e0b0ac47983ce9e88a1a4.zip
Adding key for container to msbuild
Diffstat (limited to 'eclass')
-rw-r--r--eclass/dotnet.eclass16
1 files changed, 14 insertions, 2 deletions
diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
index 666d568..f209b05 100644
--- a/eclass/dotnet.eclass
+++ b/eclass/dotnet.eclass
@@ -135,10 +135,22 @@ exbuild_strong() {
SNK_FILENAME=/var/lib/layman/dotnet/eclass/mono.snk
# sn - Digitally sign/verify/compare strongnames on CLR assemblies.
# man sn = http://linux.die.net/man/1/sn
+ if [ -f ${SNK_FILENAME} ]; then
+ einfo "build through snk = ${SNK_FILENAME}"
+ KARGS1=/p:SignAssembly=true
+ KARGS2=/p:AssemblyOriginatorKeyFile=${SNK_FILENAME}
+ else
+ einfo "build through container"
+ KARGS1=/p:SignAssembly=true
+ KARGS2=/p:AssemblyKeyContainerName=mono
+ fi
+ else
+ einfo "build through given snk"
+ KARGS1=/p:SignAssembly=true
+ KARGS2=/p:AssemblyOriginatorKeyFile=${SNK_FILENAME}
fi
- KARGS1=/p:SignAssembly=true
- KARGS2=/p:AssemblyOriginatorKeyFile=${SNK_FILENAME}
else
+ einfo "no strong signing"
KARGS1=
KARGS2=
fi