From 2c9b74ab9271363ffd2d1376643c5185b04d1cd6 Mon Sep 17 00:00:00 2001 From: Marcus Cuda Date: Mon, 25 Jan 2010 21:07:49 +0800 Subject: [PATCH] added automatically generated version template --- src/Numerics/Numerics.csproj | 9 ++++++ src/Numerics/Properties/AssemblyInfo.cs | 2 -- src/Numerics/Version.cs | 30 ++++++++++++++++++++ src/Numerics/Version.tt | 32 ++++++++++++++++++++++ src/Silverlight/Properties/AssemblyInfo.cs | 2 -- src/Silverlight/Silverlight.csproj | 3 ++ 6 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 src/Numerics/Version.cs create mode 100644 src/Numerics/Version.tt diff --git a/src/Numerics/Numerics.csproj b/src/Numerics/Numerics.csproj index 7e37402c..fa460739 100644 --- a/src/Numerics/Numerics.csproj +++ b/src/Numerics/Numerics.csproj @@ -192,6 +192,15 @@ SafeNativeMethods.cs + + True + True + Version.tt + + + TextTemplatingFileGenerator + Version.cs + diff --git a/src/Numerics/Properties/AssemblyInfo.cs b/src/Numerics/Properties/AssemblyInfo.cs index 3a3f5053..e7dad1fb 100644 --- a/src/Numerics/Properties/AssemblyInfo.cs +++ b/src/Numerics/Properties/AssemblyInfo.cs @@ -43,7 +43,5 @@ using System.Runtime.InteropServices; [assembly: CLSCompliant(true)] [assembly: ComVisible(false)] [assembly: Guid("7b66646f-f0ee-425d-9065-910d1937a2df")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: NeutralResourcesLanguage("en")] [assembly: InternalsVisibleTo("MathNet.Numerics.UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed2314a577643d859571b8b9307c6ff2670525c4598fbb307e57ea65ebf5d4417284cb3da9181636480b623f4db8cc3c1947244ba069df0df86e2431621f51a488f9929519a1c5d0ae595f6e2d0e4094685f0c1229ff658360acbb9f63f1a0258e984dda00dc7ad4fd16dbb550ec1ef8a11df138402b7c1998ee224e652c839b")] diff --git a/src/Numerics/Version.cs b/src/Numerics/Version.cs new file mode 100644 index 00000000..cfeadb4e --- /dev/null +++ b/src/Numerics/Version.cs @@ -0,0 +1,30 @@ +// +// Math.NET Numerics, part of the Math.NET Project +// http://mathnet.opensourcedotnet.info +// Copyright (c) 2009 Math.NET +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation +// files (the "Software"), to deal in the Software without +// restriction, including without limitation the rights to use, +// copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following +// conditions: +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +/* This file is automatically generated - do not modify it. Change Version.tt instead. + Last generated on: 1/25/2010 2:22:50 PM +*/ +using System.Reflection; + +[assembly: AssemblyVersion("2010.01.25.862")] +[assembly: AssemblyFileVersion("2010.01.25.862")] \ No newline at end of file diff --git a/src/Numerics/Version.tt b/src/Numerics/Version.tt new file mode 100644 index 00000000..a7f892c7 --- /dev/null +++ b/src/Numerics/Version.tt @@ -0,0 +1,32 @@ +// +// Math.NET Numerics, part of the Math.NET Project +// http://mathnet.opensourcedotnet.info +// Copyright (c) 2009 Math.NET +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation +// files (the "Software"), to deal in the Software without +// restriction, including without limitation the rights to use, +// copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following +// conditions: +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +/* This file is automatically generated - do not modify it. Change Version.tt instead. + Last generated on: <#=DateTime.Now.ToString()#> +*/ +<#@ template Language="C#"#> +using System.Reflection; + +<# DateTime date = DateTime.Now; #> +[assembly: AssemblyVersion("<#=date.Year#>.<#=date.Month.ToString("0#")#>.<#=date.Day#>.<#=(int)date.TimeOfDay.TotalMinutes#>")] +[assembly: AssemblyFileVersion("<#=date.Year#>.<#=date.Month.ToString("0#")#>.<#=date.Day#>.<#=(int)date.TimeOfDay.TotalMinutes#>")] \ No newline at end of file diff --git a/src/Silverlight/Properties/AssemblyInfo.cs b/src/Silverlight/Properties/AssemblyInfo.cs index 7957617c..d9214ba6 100644 --- a/src/Silverlight/Properties/AssemblyInfo.cs +++ b/src/Silverlight/Properties/AssemblyInfo.cs @@ -43,7 +43,5 @@ using System.Runtime.InteropServices; [assembly: CLSCompliant(true)] [assembly: ComVisible(false)] [assembly: Guid("7b66646f-f0ee-425d-9065-910d1937a2df")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: NeutralResourcesLanguage("en")] [assembly: InternalsVisibleTo("MathNet.Numerics.UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed2314a577643d859571b8b9307c6ff2670525c4598fbb307e57ea65ebf5d4417284cb3da9181636480b623f4db8cc3c1947244ba069df0df86e2431621f51a488f9929519a1c5d0ae595f6e2d0e4094685f0c1229ff658360acbb9f63f1a0258e984dda00dc7ad4fd16dbb550ec1ef8a11df138402b7c1998ee224e652c839b")] diff --git a/src/Silverlight/Silverlight.csproj b/src/Silverlight/Silverlight.csproj index 29bc9beb..f71b8eae 100644 --- a/src/Silverlight/Silverlight.csproj +++ b/src/Silverlight/Silverlight.csproj @@ -324,6 +324,9 @@ Trigonometry.cs + + Version.cs +