Skip to content

Commit 3e73274

Browse files
author
Emile Joubert
committed
Strong named assemblies (if not .NET 1.1)
1 parent e254662 commit 3e73274

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

default.build

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<property name="gensrc.dir" value="${build.dir}/gensrc" />
1616
<property name="apigen.exename" value="${bin.dir}/rabbitmq-dotnet-apigen.exe" />
1717
<property name="target.dllname.base" value="RabbitMQ.Client" />
18-
<property name="target.dllname.module" value="${bin.dir}/${target.dllname.base}.netmodule" />
1918
<property name="target.dllname" value="${bin.dir}/${target.dllname.base}.dll" />
2019
<property name="bootstrap.dllname" value="${bin.dir}/apigen-bootstrap.dll" />
2120
<property name="existence.test.probe" value="${gensrc.dir}/autogenerated-api-0-9.cs"/>
@@ -81,10 +80,15 @@
8180

8281
<target name="build" description="compiles the source code"
8382
depends="generate-api">
83+
<property name="keyfile.ok"
84+
value="${(property::exists('keyfile') and file::exists(property::get-value('keyfile')) and property::get-value('config.name') != 'dotnet-1.1')}" />
8485
<mkdir dir="${bin.dir}" />
8586
<mkdir dir="${doc.dir}" />
86-
<csc target="module"
87-
output="${target.dllname.module}"
87+
<property name="gen.assemblyinfo.src" value="${core.assemblyinfo.src}"/>
88+
<property name="gen.assemblyinfo.target" value="${core.assemblyinfo.target}"/>
89+
<call target="generate-assemblyinfo"/>
90+
<csc target="library"
91+
output="${target.dllname}"
8892
doc="${bin.dir}/${target.dllname.base}.xml"
8993
debug="${debug}">
9094
<sources>
@@ -95,25 +99,8 @@
9599
<nowarn>
96100
<warning number="1591"/>
97101
</nowarn>
102+
<arg value="/keyfile:${keyfile}" if="${keyfile.ok}" />
98103
</csc>
99-
<call target="build-link-assembly"/>
100-
</target>
101-
102-
<target name="build-link-assembly" description="Link the assembly">
103-
<property name="keyfile.ok"
104-
value="${(property::exists('keyfile') and file::exists(property::get-value('keyfile')))}" />
105-
<echo message="Linking assembly" unless="${file::exists(target.dllname)}"/>
106-
<echo message="Signing assembly" if="${keyfile.ok}" unless="${file::exists(target.dllname)}"/>
107-
<al output="${target.dllname}"
108-
target="lib"
109-
title="RabbitMQ Client Library for .Net"
110-
description="Open Source Enterprise Messaging"
111-
company="LShift Ltd."
112-
copyright="Copyright © 2007, 2008 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd."
113-
version="${version.assembly}">
114-
<arg value="/keyfile:${keyfile}" if="${keyfile.ok}" />
115-
<arg path="${target.dllname.module}" />
116-
</al>
117104
</target>
118105

119106
<target name="build-wcf" description="Builds the WCF component. Requires .NET 3.0."

0 commit comments

Comments
 (0)