Skip to content
Browse files

Added version_bumper to rake, added assembly info task, changed neces…

…sary to have every assembly attributed with the correct version closes #337
  • Loading branch information...
1 parent ccdbbe0 commit f001de85771dedee2fcac7eb8762309ca7414a09 @tommarien tommarien committed Nov 25, 2012
View
1 VERSION
@@ -0,0 +1 @@
+1.0.5.0
View
5 packages/packaging.rb
@@ -1,4 +1,5 @@
require 'fileutils'
+require 'version_bumper'
#Unfortunately SQLite cannot be ILMerged in because it is not 100% managed.
#exec :ilmerge_runner_with_providers => :release do |cmd|
@@ -15,7 +16,7 @@
# ]
#end
-FLUENTMIGRATOR_VERSION = "1.0.5.0"
+FLUENTMIGRATOR_VERSION = bumper_version.to_s
def to_nuget_version(v)
v[1] + v[3]
@@ -104,7 +105,7 @@ def prepare_tools_package
@platforms = ['x86', 'AnyCPU']
@versions = ['v3.5', 'v4.0']
- task :prepare_package => ['build:console', :create_spec, :create_tools_spec, :clean] do
+ task :prepare_package => ['build:solutioninfo', 'build:console', :create_spec, :create_tools_spec, :clean] do
@versions.each do |v|
prepare_lib v
View
11 rakefile.rb
@@ -1,4 +1,5 @@
require 'albacore'
+require 'version_bumper'
require './packages/packaging'
task :default => [:build]
@@ -10,6 +11,16 @@
namespace :build do
+ desc "create solutioninfo.cs file"
+ assemblyinfo :solutioninfo do |asm|
+ asm.version = bumper_version.to_s
+ asm.file_version = bumper_version.to_s
+ asm.product_name = "FluentMigrator"
+ asm.copyright = "Copyright - Sean Chambers 2008-" + Time.now.year.to_s
+ asm.custom_attributes :AssemblyConfigurationAttribute => "Debug"
+ asm.output_file = "src/SolutionInfo.cs"
+ end
+
msbuild :debug do |msb|
# this doesnt work for me, and it builds fine w/o it. sry if it breaks for you. -josh c
# to josh c, Please upgrade your Albacore. --tkellogg
View
2 src/FluentMigrator.Console/FluentMigrator.Console.csproj
@@ -109,7 +109,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="..\SolutionInfo.cs">
- <Link>SolutionInfo.cs</Link>
+ <Link>Properties\SolutionInfo.cs</Link>
</Compile>
<Compile Include="MigratorConsole.cs" />
<Compile Include="Options.cs" />
View
4 src/FluentMigrator.Console/Properties/AssemblyInfo.cs
@@ -18,5 +18,5 @@
using System.Reflection;
-[assembly: AssemblyTitle("FluentMigrator")]
-[assembly: AssemblyDescription("FluentMigrator")]
+[assembly: AssemblyTitle("FluentMigrator.Console")]
+[assembly: AssemblyDescription("FluentMigrator console application")]
View
2 src/FluentMigrator.MSBuild/FluentMigrator.MSBuild.csproj
@@ -69,7 +69,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="..\SolutionInfo.cs">
- <Link>SolutionInfo.cs</Link>
+ <Link>Properties\SolutionInfo.cs</Link>
</Compile>
<Compile Include="Migrate.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
View
2 src/FluentMigrator.NAnt/FluentMigrator.NAnt.csproj
@@ -69,7 +69,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="..\SolutionInfo.cs">
- <Link>SolutionInfo.cs</Link>
+ <Link>Properties\SolutionInfo.cs</Link>
</Compile>
<Compile Include="MigrateTask.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
View
4 src/FluentMigrator.Runner/FluentMigrator.Runner.csproj
@@ -125,7 +125,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="..\SolutionInfo.cs">
- <Link>SolutionInfo.cs</Link>
+ <Link>Properties\SolutionInfo.cs</Link>
</Compile>
<Compile Include="Announcers\Announcer.cs" />
<Compile Include="AnnouncerExtensions.cs" />
@@ -353,4 +353,4 @@
<Target Name="AfterBuild">
</Target>
-->
-</Project>
+</Project>
View
3 src/FluentMigrator.SchemaDump/FluentMigrator.SchemaDump.csproj
@@ -40,6 +40,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\SolutionInfo.cs">
+ <Link>Properties\SolutionInfo.cs</Link>
+ </Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SchemaDumpers\ISchemaDumper.cs" />
<Compile Include="SchemaDumpers\SqlServerSchemaDumper.cs" />
View
29 src/FluentMigrator.SchemaDump/Properties/AssemblyInfo.cs
@@ -6,31 +6,4 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FluentMigrator.SchemaDump")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("FluentMigrator.SchemaDump")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("be5bd301-3c78-4c9d-8168-0bb3a4fee382")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyDescription("FluentMigrator.SchemaDump")]
View
3 src/FluentMigrator.T4.Tests/FluentMigrator.T4.Tests.csproj
@@ -43,6 +43,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\SolutionInfo.cs">
+ <Link>Properties\SolutionInfo.cs</Link>
+ </Compile>
<Compile Include="GeneratorTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
View
29 src/FluentMigrator.T4.Tests/Properties/AssemblyInfo.cs
@@ -6,31 +6,4 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FluentMigrator.T4.Tests")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("FluentMigrator.T4.Tests")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("0b9d868e-7764-47a6-832f-67473cb83a39")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyDescription("")]
View
3 src/FluentMigrator.T4/FluentMigrator.T4.csproj
@@ -41,6 +41,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\SolutionInfo.cs">
+ <Link>Properties\SolutionInfo.cs</Link>
+ </Compile>
<Compile Include="DelegateTextWriter.cs" />
<Compile Include="Models\Column.cs" />
<Compile Include="Models\ForeignKey.cs" />
View
29 src/FluentMigrator.T4/Properties/AssemblyInfo.cs
@@ -6,31 +6,4 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FluentMigrator.T4")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("FluentMigrator.T4")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("4a8b8b71-ebd9-4c34-946e-6b94c7925d1c")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyDescription("")]
View
3 src/FluentMigrator.Tests/FluentMigrator.Tests.csproj
@@ -150,6 +150,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\SolutionInfo.cs">
+ <Link>Properties\SolutionInfo.cs</Link>
+ </Compile>
<Compile Include="Helpers\FirebirdTestTable.cs" />
<Compile Include="Helpers\OracleTestTable.cs" />
<Compile Include="Helpers\PostgresTestTable.cs" />
View
29 src/FluentMigrator.Tests/Properties/AssemblyInfo.cs
@@ -22,31 +22,4 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FluentMigrator.Tests")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("FluentMigrator.Tests")]
-[assembly: AssemblyCopyright("Copyright � Microsoft 2008")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("62c03e52-5509-4648-b1ca-2197b11e9f78")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyDescription("")]
View
2 src/FluentMigrator/FluentMigrator.csproj
@@ -120,7 +120,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="..\SolutionInfo.cs">
- <Link>SolutionInfo.cs</Link>
+ <Link>Properties\SolutionInfo.cs</Link>
</Compile>
<Compile Include="Builders\Alter\AlterExpressionRoot.cs" />
<Compile Include="Builders\Alter\Column\AlterColumnExpressionBuilder.cs" />
View
22 src/SolutionInfo.cs
@@ -1,16 +1,8 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+[assembly: AssemblyProduct("FluentMigrator")]
+[assembly: AssemblyCopyright("Copyright - Sean Chambers 2008-2012")]
+[assembly: AssemblyVersion("1.0.5.0")]
+[assembly: AssemblyFileVersion("1.0.5.0")]
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.17929
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-[assembly: System.Reflection.AssemblyProductAttribute("FluentMigrator")]
-[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright - Sean Chambers 2008-2010")]
-[assembly: System.Reflection.AssemblyConfigurationAttribute("debug")]
-
+[assembly: AssemblyConfigurationAttribute("Debug")]

0 comments on commit f001de8

Please sign in to comment.
Something went wrong with that request. Please try again.