forked from zzzprojects/EntityFramework.Extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Master.proj
109 lines (90 loc) · 4.1 KB
/
Master.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfiguration>Release</BuildConfiguration>
<BuildFolder>Build\$(BuildConfiguration)</BuildFolder>
<TestFolder>Build\Test</TestFolder>
<LibraryFolder>Libraries</LibraryFolder>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\$(LibraryFolder)</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>
<PropertyGroup>
<Major>6</Major>
<Minor>1</Minor>
<Build>0</Build>
<BindBuild>0</BindBuild>
<Revision>0</Revision>
<BindRevision>0</BindRevision>
</PropertyGroup>
<PropertyGroup Condition=" '$(BUILD_NUMBER)' != '' ">
<!-- TeamCity Build Number -->
<Revision>$(BUILD_NUMBER)</Revision>
</PropertyGroup>
<PropertyGroup>
<Year>2014</Year>
</PropertyGroup>
<ItemGroup>
<DefaultExclude Include="**\.svn\**" />
<DefaultExclude Include="**\.git\**" />
<DefaultExclude Include="**\bin\**" />
<DefaultExclude Include="**\obj\**" />
<DefaultExclude Include="**\.gitignore" />
<DefaultExclude Include="**\_resharper*\**" />
<DefaultExclude Include="**\*.resharper" />
<DefaultExclude Include="**\*.dotCover" />
<DefaultExclude Include="**\*.user" />
<DefaultExclude Include="**\*.suo" />
<DefaultExclude Include="**\*.zip" />
<DefaultExclude Include="**\*.msi" />
<DefaultExclude Include="**\*.log" />
</ItemGroup>
<Target Name="Clean">
<DeleteTree Directories="$(BuildFolder)" />
<DeleteTree Directories="$(TestFolder)" />
</Target>
<Target Name="Version">
<Time>
<Output TaskParameter="Year" PropertyName="Year" />
</Time>
<Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/>
<AssemblyInfo CodeLanguage="CS"
OutputFile="Source\GlobalAssemblyInfo.cs"
AssemblyProduct="EntityFramework.Extended (.NET 4.5)"
AssemblyDescription="Entity Framework extensions library. Built for .NET 4.5"
AssemblyCompany="LoreSoft"
AssemblyCopyright="Copyright © $(Year) LoreSoft"
AssemblyVersion="$(Major).$(Minor).$(BindBuild).$(BindRevision)"
AssemblyFileVersion="$(Major).$(Minor).$(Build).$(Revision)"
AssemblyInformationalVersion="$(Major).$(Minor).$(Build).$(Revision)"
GenerateClass="true" />
<AssemblyInfo CodeLanguage="CS"
OutputFile="Source\GlobalAssemblyInfo.net40.cs"
AssemblyProduct="EntityFramework.Extended (.NET 4.0)"
AssemblyDescription="Entity Framework extensions library. Built for .NET 4.0"
AssemblyCompany="LoreSoft"
AssemblyCopyright="Copyright © $(Year) LoreSoft"
AssemblyVersion="$(Major).$(Minor).$(BindBuild).$(BindRevision)"
AssemblyFileVersion="$(Major).$(Minor).$(Build).$(Revision)"
AssemblyInformationalVersion="$(Major).$(Minor).$(Build).$(Revision)"
GenerateClass="true" />
</Target>
<Target Name="Compile" DependsOnTargets="Clean;Version">
<DeleteTree Directories="**\obj\**;**\bin\**" />
<MSBuild Projects="Source\EntityFramework.Extended.sln"
Properties="Configuration=$(BuildConfiguration)"/>
<DeleteTree Directories="**\obj\**;**\bin\**" />
<MSBuild Projects="Source\EntityFramework.Extended.net40.sln"
Properties="Configuration=$(BuildConfiguration)"/>
</Target>
<Target Name="Zip" DependsOnTargets="Compile">
<CreateItem Include="$(BuildFolder)\**\EntityFramework.Extended.*" Exclude="@(DefaultExclude)" >
<Output TaskParameter="Include" ItemName="ZipFiles" />
</CreateItem>
<Zip Files="@(ZipFiles)"
WorkingDirectory="$(BuildFolder)"
ZipFileName="EntityFramework.Extended.v$(Major).$(Minor).$(Build).$(Revision).zip" />
</Target>
<Target Name="Build">
<CallTarget Targets="Zip" />
</Target>
</Project>