55f5691eb3
Version.txt file. Allows a single stamp to be propagated throughout the build process. * Source/Build.Tasks/GenerateAssemblyInfo.cs: Correctly invoke DateStamp task (need to call Execute() to generate the stamp). * Source/Build.UpdateVersion/Build.UpdateVersion.csproj: Cleaned up 'Rebuild' target. Cleaned up 'GenerateAssemblyInfo' task invocation. Attempted to generate GlobalAssemblyInfo.cs without using a custom task. Unfortunately, xbuild didn't wish to cooperate. Remove Version.txt file to update the datestamp.
59 lines
2.4 KiB
XML
59 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Documentation'">
|
|
<OutputPath>.</OutputPath>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
|
<OutputPath>.</OutputPath>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
|
<OutputPath>.</OutputPath>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Nsis'">
|
|
<OutputPath>.</OutputPath>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<ProjectGuid>{75DC22B1-113F-4A66-96B9-2FF8208C10E8}</ProjectGuid>
|
|
</PropertyGroup>
|
|
<Import Project="..\Build.Tasks\Common.xml" />
|
|
<Target Name="UpdateVersion">
|
|
<Delete Files="..\..\Version.txt" />
|
|
<GenerateAssemblyInfo
|
|
OutputFile="..\GlobalAssemblyInfo.cs"
|
|
AssemblyCompany="The Open Toolkit Library"
|
|
AssemblyProduct="The Open Toolkit Library"
|
|
AssemblyCopyright="Copyright © 2006 - 2010 the Open Toolkit Library"
|
|
AssemblyTrademark="OpenTK"
|
|
Major="1"
|
|
Minor="0" />
|
|
<!-- Fails because xbuild does not respect %3b
|
|
<DateStamp>
|
|
<Output TaskParameter="Date" PropertyName="ShortDate" />
|
|
</DateStamp>
|
|
<WriteLinesToFile File="..\GlobalAssemblyInfo.cs" Overwrite="true"
|
|
Lines='// This file is auto-generated through Build.UpdateVersion.csproj.;
|
|
// Do not edit by hand!;
|
|
using System%3b;
|
|
using System.Reflection%3b;
|
|
using System.Resources%3b;
|
|
using System.Runtime.CompilerServices%3b;
|
|
using System.Runtime.Runtime.InteropServices%3b;
|
|
;
|
|
[assembly: AssemblyCompany("The Open Toolkit Library")];
|
|
[assembly: AssemblyProduct("The Open Toolkit Library")];
|
|
[assembly: AssemblyCopyright("Copyright © 2006 - 2010 the Open Toolkit Library")];
|
|
[assembly: AssemblyTrademark("OpenTK")];
|
|
[assembly: AssemblyVersion("1.0.0.0")];
|
|
[assembly: AssemblyFileVersion("1.0.$(ShortDate)")];
|
|
' />
|
|
-->
|
|
</Target>
|
|
<Target Name="Build">
|
|
<CallTarget Targets="UpdateVersion" />
|
|
</Target>
|
|
<Target Name="Rebuild">
|
|
<CallTarget Targets="Clean" />
|
|
<CallTarget Targets="Build" />
|
|
</Target>
|
|
<Target Name="Clean" />
|
|
</Project>
|