Browse Source

separate Version.cs T4 script for silverlight project (alternative would be to link directly to Numerics' Version.cs file)

la-knuth
Christoph Ruegg 16 years ago
parent
commit
e3c06722dd
  1. 6
      src/Numerics/Version.cs
  2. 22
      src/Silverlight/Silverlight.csproj
  3. 36
      src/Silverlight/Version.cs
  4. 38
      src/Silverlight/Version.tt

6
src/Numerics/Version.cs

@ -27,10 +27,10 @@
// </copyright> // </copyright>
/* This file is automatically generated - do not modify it. Change Version.tt instead. /* This file is automatically generated - do not modify it. Change Version.tt instead.
Last generated on UTC 2010-06-10 18:41:04Z Last generated on UTC 2010-07-09 23:34:29Z
*/ */
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("2010.06.10.1121")] [assembly: AssemblyVersion("2010.07.9.1414")]
[assembly: AssemblyFileVersion("2010.06.10.1121")] [assembly: AssemblyFileVersion("2010.07.9.1414")]

22
src/Silverlight/Silverlight.csproj

@ -380,12 +380,6 @@
<Compile Include="..\Numerics\Trigonometry.cs"> <Compile Include="..\Numerics\Trigonometry.cs">
<Link>Trigonometry.cs</Link> <Link>Trigonometry.cs</Link>
</Compile> </Compile>
<Compile Include="..\Numerics\Version1.cs">
<Link>Version1.cs</Link>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Version.tt</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SerializableAttribute.cs" /> <Compile Include="SerializableAttribute.cs" />
<Compile Include="SilverlightUtilities.cs" /> <Compile Include="SilverlightUtilities.cs" />
@ -394,6 +388,11 @@
<Compile Include="Threading\Task.cs" /> <Compile Include="Threading\Task.cs" />
<Compile Include="Threading\TaskOfT.cs" /> <Compile Include="Threading\TaskOfT.cs" />
<Compile Include="Threading\ThreadQueue.cs" /> <Compile Include="Threading\ThreadQueue.cs" />
<Compile Include="Version.cs">
<DependentUpon>Version.tt</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="..\Numerics\Properties\Resources.resx"> <EmbeddedResource Include="..\Numerics\Properties\Resources.resx">
@ -401,14 +400,13 @@
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\Numerics\Version.tt"> <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
<Link>Version.tt</Link>
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Version1.cs</LastGenOutput>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" /> <None Include="Version.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Version.cs</LastGenOutput>
</None>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<ProjectExtensions> <ProjectExtensions>

36
src/Silverlight/Version.cs

@ -0,0 +1,36 @@
// <copyright file="Version.cs" company="Math.NET">
// 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.
// </copyright>
/* This file is automatically generated - do not modify it. Change Version.tt instead.
Last generated on UTC 2010-07-09 23:34:32Z
*/
using System.Reflection;
[assembly: AssemblyVersion("2010.07.9.1414")]
[assembly: AssemblyFileVersion("2010.07.9.1414")]

38
src/Silverlight/Version.tt

@ -0,0 +1,38 @@
// <copyright file="Version.cs" company="Math.NET">
// 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.
// </copyright>
/* This file is automatically generated - do not modify it. Change Version.tt instead.
Last generated on UTC <#=DateTime.UtcNow.ToString("u")#>
*/
<#@ template Language="C#"#>
using System.Reflection;
<# DateTime date = DateTime.UtcNow; #>
[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#>")]
Loading…
Cancel
Save