Permalink
Browse files

signing roundhouse assemblies - #14

  • Loading branch information...
1 parent 0df5fed commit 2c16555caf42f358bfd617b2104fe93d00035ff5 @ferventcoder ferventcoder committed Aug 17, 2011
View
Binary file not shown.
@@ -49,7 +49,7 @@
<property name="allow.partially_trusted_callers" value="false" overwrite="false" />
<property name="sign.project_with_key" value="false" overwrite="false" />
<!-- To use relative pathing your projects all need to be at the same level. -->
- <property name="sign.key.use_relative_pathing" value="false" overwrite="false" />
+ <property name="sign.key.use_relative_pathing" value="true" overwrite="false" />
<property name="sign.key.relative_path_from_projects" value="..${path.separator}..${path.separator}" overwrite="false" />
<property name="obfuscate" value="false" overwrite="false" />
@@ -84,6 +84,7 @@
<property name="app.xbuild" value="C:\Program Files (x86)\Mono-2.8\bin\xbuild.bat" overwrite="false" />
<property name="app.eazfuscator" value="..${path.separator}${folder.references}${path.separator}Eazfuscator.NET${path.separator}Eazfuscator.NET.exe" overwrite="false" />
<property name="app.nuget" value="..${path.separator}${folder.references}${path.separator}NuGet${path.separator}NuGet.exe" overwrite="false" />
+ <property name="app.strongname" value="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\sn.exe" overwrite="false" />
<property name="allow.powershell.unrestricted" value="false" overwrite="false" />
<property name="run.ilmerge" value="true" overwrite="false" />
@@ -15,9 +15,18 @@
<property name="folder.deployment" value="deployment" overwrite="false" />
<property name="dirs.deployment" value="${dirs.drop}\${folder.deployment}" />
<property name="dirs.app.drop" value="${dirs.drop}\${folder.app.drop}" overwrite="false" />
+ <property name="file.key" value="${dirs.current}\${path.to.toplevel}\RoundhousE.snk" overwrite="false" />
<target name="go" depends="copy_roundhouse_files_to_deploy_console, merge_the_dll, merge_the_msbuild" />
+ <target name="sign_merged_exe">
+ <al output="${dirs.app.drop}\console\rh.exe" target="exe">
+ <sources>
+ <include name="${dirs.app.drop}\console\rh.exe" />
+ </sources>
+ </al>
+ </target>
+
<target name="copy_roundhouse_files_to_deploy_console">
<echo message="Removing original roundhouse assemblies from ${dirs.deployment}\console."/>
<delete>
@@ -22,6 +22,7 @@
<!-- overwrite this property -->
<property name="dirs.merge.from" value="${dirs.drop}\${folder.app.drop}\lib" />
<property name="dirs.merge.to" value="${dirs.drop}\merge" overwrite="false" />
+ <property name="file.key" value="${dirs.current}\${path.to.toplevel}\RoundhousE.snk" overwrite="false" />
<property name="file.internalize.ignore" value="ilmerge.internalize.ignore.txt" />
<property name="path.file.internalize.ignore" value="${dirs.build_scripts_custom}\${file.internalize.ignore}" />
@@ -40,8 +41,8 @@
<target name="prepare">
<mkdir dir="${dirs.merge.log}" />
<mkdir dir="${dirs.merge.from}" />
-
<mkdir dir="${dirs.merge.to}" />
+ <property name="args.ilmerge" value="${args.ilmerge} /keyfile:${file.key}" if="${file::exists(file.key)}"/>
</target>
<target name="get_regular_dlls">
@@ -22,6 +22,7 @@
<!-- overwrite this property -->
<property name="dirs.merge.from" value="${dirs.drop}\${folder.app.drop}\msbuild" />
<property name="dirs.merge.to" value="${dirs.drop}\merge" overwrite="false" />
+ <property name="file.key" value="${dirs.current}\${path.to.toplevel}\RoundhousE.snk" overwrite="false" />
<property name="file.internalize.ignore" value="ilmerge.internalize.ignore.txt" />
<property name="path.file.internalize.ignore" value="${dirs.build_scripts_custom}\${file.internalize.ignore}" />
@@ -40,8 +41,8 @@
<target name="prepare">
<mkdir dir="${dirs.merge.log}" />
<mkdir dir="${dirs.merge.from}" />
-
<mkdir dir="${dirs.merge.to}" />
+ <property name="args.ilmerge" value="${args.ilmerge} /keyfile:${file.key}" if="${file::exists(file.key)}"/>
</target>
<target name="get_regular_dlls">
View
@@ -31,6 +31,7 @@
<property name="merge.target.type" value="__REPLACE__" overwrite="false" />
<property name="args.ilmerge" value="/internalize /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /xmldocs /ndebug /allowDup ${file.merge.name} " />
<property name="args.ilmerge" value="/internalize:${path.file.internalize.ignore} /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /xmldocs /ndebug /allowDup ${file.merge.name} " if="${file::exists(path.file.internalize.ignore)}"/>
+ <property name="file.key" value="${dirs.current}\${path.to.toplevel}\RoundhousE.snk" overwrite="false" />
<property name="allow.powershell.unrestricted" value="false" overwrite="false" />
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.build" />
@@ -84,8 +85,9 @@
<property name="dirs.merge.to" value="${environment::get-variable('uc.dirs.merge.to')}" if="${environment::variable-exists('uc.dirs.merge.to')}" />
<property name="file.merge.name" value="${environment::get-variable('uc.file.merge.name')}" if="${environment::variable-exists('uc.file.merge.name')}" />
<property name="merge.target.type" value="${environment::get-variable('uc.merge.target.type')}" if="${environment::variable-exists('uc.merge.target.type')}" />
- <property name="args.ilmerge" value="/internalize /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /ndebug /allowDup ${file.merge.name} " />
- <property name="args.ilmerge" value="/internalize:${path.file.internalize.ignore} /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /ndebug /allowDup ${file.merge.name} " if="${file::exists(path.file.internalize.ignore)}"/>
+ <property name="args.ilmerge" value="/internalize /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /ndebug /allowDup ${file.merge.name}" />
+ <property name="args.ilmerge" value="/internalize:${path.file.internalize.ignore} /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /ndebug /allowDup ${file.merge.name}" if="${file::exists(path.file.internalize.ignore)}"/>
+ <property name="args.ilmerge" value="${args.ilmerge} /keyfile:${file.key}" if="${file::exists(file.key)}"/>
</target>
<target name="error_check">
@@ -1,5 +1,7 @@
-using System.Runtime.InteropServices;
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-
-[assembly: Guid("a7a8d35d-cb38-4f12-a388-41c0fd21bf20")]
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+
+[assembly: Guid("a7a8d35d-cb38-4f12-a388-41c0fd21bf20")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]
@@ -1,4 +1,6 @@
-using System.Runtime.InteropServices;
+using System.Reflection;
+using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("d1df5985-48bc-48b8-ba40-8c71920ac918")]
+[assembly: Guid("d1df5985-48bc-48b8-ba40-8c71920ac918")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]
@@ -1,4 +1,6 @@
-using System.Runtime.InteropServices;
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("1b301660-88e7-4a5b-b7b0-eceedcf8fbdc")]
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("1b301660-88e7-4a5b-b7b0-eceedcf8fbdc")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]
@@ -1,4 +1,6 @@
-using System.Runtime.InteropServices;
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("f9da0a8d-edee-4941-86ce-2a138b32286d")]
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("f9da0a8d-edee-4941-86ce-2a138b32286d")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]
@@ -1,4 +1,6 @@
-using System.Runtime.InteropServices;
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("52796298-9e1f-47fd-9253-d3b2fcf4feda")]
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("52796298-9e1f-47fd-9253-d3b2fcf4feda")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]
@@ -1,4 +1,6 @@
-using System.Runtime.InteropServices;
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("4a07f5e3-9122-4082-8da3-13dbff0d493c")]
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("4a07f5e3-9122-4082-8da3-13dbff0d493c")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]
@@ -1,5 +1,7 @@
-using System.Runtime.InteropServices;
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-
-[assembly: Guid("19e376f8-f00d-4d7d-a670-37fec4a7c39f")]
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+
+[assembly: Guid("19e376f8-f00d-4d7d-a670-37fec4a7c39f")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]
@@ -1,5 +1,7 @@
-using System.Runtime.InteropServices;
+using System.Reflection;
+using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("087c0458-1443-41a5-ad51-08e7cdd6fe0f")]
+[assembly: Guid("087c0458-1443-41a5-ad51-08e7cdd6fe0f")]
+[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")]

0 comments on commit 2c16555

Please sign in to comment.