Permalink
Browse files

Issue #56

Strong name DLLs that allow it (NAnt's not strong named apparently)
  • Loading branch information...
1 parent b97d5b6 commit b07d02560c1fa94e2672b4bb7a4a34222a7ffd47 @geofflane geofflane committed Mar 25, 2010
View
@@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extras", "Extras", "{02B014
doc\CHANGES.txt = doc\CHANGES.txt
default.build = default.build
local.properties-example = local.properties-example
+ src\MigratorDotNet.snk = src\MigratorDotNet.snk
doc\README.txt = doc\README.txt
doc\TODO.txt = doc\TODO.txt
EndProjectSection
View
@@ -26,8 +26,9 @@
<property name="dir.console" value="${dir.src}/Migrator.Console" />
<property name="dir.tools.ncover" value="${dir.lib}/NCover" />
<property name="dir.tools.nunit" value="${dir.lib}/NUnit" />
- <property name="dir.lib.postgre" value="${dir.lib}/Npgsql/${framework::get-target-framework()}" />
-
+ <property name="dir.lib.postgre" value="${dir.lib}/Npgsql/${framework::get-target-framework()}" />
+ <property name="dir.keyfile" value="${dir.src}/MigratorDotNet.snk" />
+
<property name="test.project.name" value="Migrator.Tests"/>
<!-- Test related properties -->
@@ -57,7 +58,7 @@
-->
<target name="build" description="Builds the app" depends="prepare">
- <csc target="library" output="${dir.bin}/Migrator.Framework.dll" define="${defines}" debug="${debug}">
+ <csc target="library" output="${dir.bin}/Migrator.Framework.dll" define="${defines}" debug="${debug}" keyfile="${dir.keyfile}">
<sources>
<include name="${dir.config}/AssemblyInfo.cs" />
<include name="${dir.framework}/**/*.cs" />
@@ -67,7 +68,7 @@
<include name="System.Data.dll" />
</references>
</csc>
- <csc target="library" output="${dir.bin}/Migrator.Providers.dll" define="${defines}" debug="${debug}">
+ <csc target="library" output="${dir.bin}/Migrator.Providers.dll" define="${defines}" debug="${debug}" keyfile="${dir.keyfile}">
<sources>
<include name="${dir.config}/AssemblyInfo.cs" />
<include name="${dir.providers}/**/*.cs" />
@@ -81,59 +82,59 @@
<include name="${dir.bin}/MySql.Data.dll" />
<include name="${dir.bin}/Npgsql.dll" />
<include name="${dir.lib}/Oracle.DataAccess.dll" />
- <include name="${dir.lib}/System.Data.SqlServerCe.dll" />
- </references>
- </csc>
- <csc target="library" output="${dir.bin}/Migrator.dll" define="${defines}" debug="${debug}">
- <sources>
- <include name="${dir.config}/AssemblyInfo.cs" />
- <include name="${dir.core}/**/*.cs" />
- </sources>
- <references>
- <include name="System.dll" />
- <include name="System.Data.dll" />
- <include name="System.Configuration.dll" />
- <include name="${dir.bin}/Migrator.Framework.dll" />
+ <include name="${dir.lib}/System.Data.SqlServerCe.dll" />
+ </references>
+ </csc>
+ <csc target="library" output="${dir.bin}/Migrator.dll" define="${defines}" debug="${debug}" keyfile="${dir.keyfile}">
+ <sources>
+ <include name="${dir.config}/AssemblyInfo.cs" />
+ <include name="${dir.core}/**/*.cs" />
+ </sources>
+ <references>
+ <include name="System.dll" />
+ <include name="System.Data.dll" />
+ <include name="System.Configuration.dll" />
+ <include name="${dir.bin}/Migrator.Framework.dll" />
<include name="${dir.bin}/Migrator.Providers.dll" />
- </references>
- </csc>
- <csc target="library" output="${dir.bin}/Migrator.NAnt.dll" define="${defines}" debug="${debug}">
- <sources>
- <include name="${dir.config}/AssemblyInfo.cs" />
- <include name="${dir.nant}/**/*.cs" />
- </sources>
- <references>
- <include name="System.dll" />
- <include name="${dir.bin}/NAnt.Core.dll" />
- <include name="${dir.bin}/Migrator.Framework.dll" />
- <include name="${dir.bin}/Migrator.dll" />
- </references>
- </csc>
- <csc target="library" output="${dir.bin}/Migrator.MSBuild.dll" define="${defines}" debug="${debug}" if="${property::exists('dotnet')}">
- <sources>
- <include name="${dir.config}/AssemblyInfo.cs" />
- <include name="${dir.msbuild}/**/*.cs" />
- </sources>
- <references>
- <include name="System.dll" />
- <include name="Microsoft.Build.Framework.dll" />
- <include name="Microsoft.Build.Utilities.dll" />
- <include name="${dir.bin}/Migrator.Framework.dll" />
- <include name="${dir.bin}/Migrator.dll" />
- </references>
- </csc>
- <csc target="exe" output="${dir.bin}/Migrator.Console.exe" define="${defines}" debug="${debug}">
- <sources>
- <include name="${dir.config}/AssemblyInfo.cs" />
- <include name="${dir.console}/**/*.cs" />
- </sources>
- <references>
- <include name="System.dll" />
- <include name="${dir.bin}/Migrator.Framework.dll" />
- <include name="${dir.bin}/Migrator.dll" />
- </references>
- </csc>
- </target>
+ </references>
+ </csc>
+ <csc target="library" output="${dir.bin}/Migrator.NAnt.dll" define="${defines}" debug="${debug}">
+ <sources>
+ <include name="${dir.config}/AssemblyInfo.cs" />
+ <include name="${dir.nant}/**/*.cs" />
+ </sources>
+ <references>
+ <include name="System.dll" />
+ <include name="${dir.bin}/NAnt.Core.dll" />
+ <include name="${dir.bin}/Migrator.Framework.dll" />
+ <include name="${dir.bin}/Migrator.dll" />
+ </references>
+ </csc>
+ <csc target="library" output="${dir.bin}/Migrator.MSBuild.dll" define="${defines}" debug="${debug}" if="${framework::get-target-framework() == 'net-2.0'}" keyfile="${dir.keyfile}">
+ <sources>
+ <include name="${dir.config}/AssemblyInfo.cs" />
+ <include name="${dir.msbuild}/**/*.cs" />
+ </sources>
+ <references>
+ <include name="System.dll" />
+ <include name="Microsoft.Build.Framework.dll" />
+ <include name="Microsoft.Build.Utilities.dll" />
+ <include name="${dir.bin}/Migrator.Framework.dll" />
+ <include name="${dir.bin}/Migrator.dll" />
+ </references>
+ </csc>
+ <csc target="exe" output="${dir.bin}/Migrator.Console.exe" define="${defines}" debug="${debug}" keyfile="${dir.keyfile}">
+ <sources>
+ <include name="${dir.config}/AssemblyInfo.cs" />
+ <include name="${dir.console}/**/*.cs" />
+ </sources>
+ <references>
+ <include name="System.dll" />
+ <include name="${dir.bin}/Migrator.Framework.dll" />
+ <include name="${dir.bin}/Migrator.dll" />
+ </references>
+ </csc>
+ </target>
<target name="rebuild" description="Rebuilds the app from scratch" depends="clean, build" />
@@ -14,6 +14,23 @@
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
+ <SignAssembly>true</SignAssembly>
+ <PublishUrl>http://localhost/Migrator.Console/</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Web</InstallFrom>
+ <UpdateEnabled>true</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>true</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ <AssemblyOriginatorKeyFile>MigratorDotNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -54,5 +71,35 @@
<Name>Migrator.Framework-vs2008</Name>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="MigratorDotNet.snk" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
@@ -13,6 +13,8 @@
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MigratorDotNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -65,6 +67,9 @@
<Compile Include="SchemaBuilder\SchemaBuilder.cs" />
<Compile Include="StringUtils.cs" />
</ItemGroup>
+ <ItemGroup>
+ <None Include="MigratorDotNet.snk" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Binary file not shown.
@@ -13,6 +13,8 @@
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MigratorDotNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -44,6 +46,7 @@
<ItemGroup>
<None Include="example-build.proj" />
<None Include="Migrator.Targets" />
+ <None Include="MigratorDotNet.snk" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Migrator\Migrator-vs2008.csproj">
Binary file not shown.
@@ -14,6 +14,8 @@
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
+ <SignAssembly>false</SignAssembly>
+ <AssemblyOriginatorKeyFile>MigratorDotNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -62,5 +64,8 @@
<Name>Migrator.Framework-vs2008</Name>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <None Include="MigratorDotNet.snk" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
@@ -28,6 +28,8 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MigratorDotNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -140,6 +142,9 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
+ <ItemGroup>
+ <None Include="MigratorDotNet.snk" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Binary file not shown.
@@ -14,6 +14,8 @@
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MigratorDotNet.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -76,6 +78,7 @@
<None Include="..\..\default.build">
<Link>default.build</Link>
</None>
+ <None Include="MigratorDotNet.snk" />
</ItemGroup>
<ItemGroup>
<Service Include="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}" />
Binary file not shown.
View
Binary file not shown.

0 comments on commit b07d025

Please sign in to comment.