forked from MRCollective/ChameleonForms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.proj
60 lines (48 loc) · 2.2 KB
/
Build.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\.build</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>
<!-- Default Version Numbers -->
<PropertyGroup>
<Version Condition="'$(Version)' == ''">1.0.0.0</Version>
<FileVersion Condition="'$(FileVersion)' == ''">1.0.0.0</FileVersion>
<InformationalVersion Condition="'$(InformationalVersion)' == ''">1.0.0.0</InformationalVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(BuildConfiguration)' == '' ">
<BuildConfiguration>Release</BuildConfiguration>
</PropertyGroup>
<Target Name="Clean">
<DeleteTree Directories="**\obj\**;**\bin\**" />
</Target>
<Target Name="Version">
<Time>
<Output TaskParameter="Year" PropertyName="Year" />
</Time>
<Message Text="Version: $(Version)"/>
<Attrib Files="$(MSBuildProjectDirectory)\ChameleonForms\Properties\AssemblyInfo.cs" ReadOnly="False" />
<AssemblyInfo CodeLanguage="CS"
OutputFile="$(MSBuildProjectDirectory)\ChameleonForms\Properties\AssemblyInfo.cs"
GenerateClass="true"
AssemblyTitle="ChameleonForms"
AssemblyDescription="ChameleonForms $(InformationalVersion)"
AssemblyCopyright="Copyright © $(Year). All rights reserved."
AssemblyConfiguration="$(BuildConfiguration)"
AssemblyVersion="$(Version)"
AssemblyFileVersion="$(FileVersion)"
AssemblyInformationalVersion="$(InformationalVersion)" />
</Target>
<!-- Projects to Build -->
<ItemGroup>
<ProjectFiles Include="$(MSBuildProjectDirectory)\**\*.sln">
<Properties>Configuration=$(BuildConfiguration)</Properties>
</ProjectFiles>
</ItemGroup>
<Target Name="Compile" DependsOnTargets="Clean;Version">
<MSBuild Projects="@(ProjectFiles)" />
</Target>
<Target Name="Build">
<CallTarget Targets="Compile" />
</Target>
</Project>