-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMaster.proj
112 lines (91 loc) · 4.11 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
110
111
112
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Zip" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<PropertyGroup>
<Major>5</Major>
<Minor>1</Minor>
<Build>0</Build>
<Revision>0</Revision>
<BindMinor>0</BindMinor>
<BindBuild>0</BindBuild>
<BindRevision>0</BindRevision>
</PropertyGroup>
<PropertyGroup>
<BuildConfiguration>Release</BuildConfiguration>
</PropertyGroup>
<ItemGroup>
<SvnExclude Include="**\.svn\**" />
<DefaultExclude Include="@(SvnExclude)" />
<DefaultExclude Include="**\obj\**" />
<DefaultExclude Include="**\bin\**" />
<DefaultExclude Include="**\Sample\**" />
<DefaultExclude Include="**\Libraries\**" />
<DefaultExclude Include="**\Help\**" />
<DefaultExclude Include="**\Patch\**" />
<DefaultExclude Include="**\_ReSharper*\**" />
<DefaultExclude Include="*.proj" />
<DefaultExclude Include="*.dbml" />
<DefaultExclude Include="*.zip" />
<DefaultExclude Include="**\*.user" />
<DefaultExclude Include="**\*.resharper" />
<DefaultExclude Include="**\*.cache" />
<DefaultExclude Include="*.teamcity.*" />
<ZipFiles Include="**\*.*" Exclude="@(DefaultExclude)" />
</ItemGroup>
<Target Name="Version">
<SvnVersion LocalPath="$(MSBuildProjectDirectory)">
<Output TaskParameter="Revision" PropertyName="Revision" />
</SvnVersion>
<Message Text="Revision: $(Revision)"/>
<Time>
<Output TaskParameter="Month" PropertyName="Month" />
<Output TaskParameter="Day" PropertyName="Day" />
<Output TaskParameter="Year" PropertyName="Year" />
</Time>
<AssemblyInfo CodeLanguage="CS"
OutputFile="$(MSBuildProjectDirectory)\Source\GlobalAssemblyInfo.cs"
AssemblyCompany="CodeSmith Tools, LLC"
AssemblyProduct="CodeSmith.Data"
AssemblyCopyright="Copyright (c) 2002-$(Year) CodeSmith Tools, LLC. All rights reserved."
AssemblyConfiguration="$(BuildConfiguration)"
AssemblyVersion="$(Major).$(BindMinor).$(BindBuild).$(BindRevision)"
AssemblyFileVersion="$(Major).$(Minor).$(Build).$(Revision)"
AssemblyInformationalVersion="$(Major).$(Minor).$(Build).$(Revision)"
GenerateClass="true" />
</Target>
<Target Name="Compile">
<MSBuild Projects="CodeSmith.Data.sln"
Properties="Configuration=$(BuildConfiguration);DefineConstants=v40" />
<MSBuild Projects="Source\CodeSmith.Data\CodeSmith.Data.csproj"
Properties="Configuration=$(BuildConfiguration);TargetFrameworkVersion=v3.5;DefineConstants=TRACE" />
</Target>
<ItemGroup>
<CommitFiles Include="Common\v3.5\CodeSmith.Data.dll" />
<CommitFiles Include="Common\v3.5\CodeSmith.Data.xml" />
<CommitFiles Include="Common\v4.0\CodeSmith.Data.dll" />
<CommitFiles Include="Common\v4.0\CodeSmith.Data.xml" />
<CommitFiles Include="Common\CodeSmith.Data.chm" />
</ItemGroup>
<Target Name="Documentation" DependsOnTargets="Version;Compile">
<MSBuild Projects="Source\Help\CodeSmith.Data.shfbproj" />
<Copy SourceFiles="Source\Help\Help\CodeSmith.Data.chm" DestinationFolder="Common"/>
</Target>
<Target Name="Zip" DependsOnTargets="Documentation">
<Zip Files="@(ZipFiles)" ZipFileName="CodeSmith.Data-r$(Revision).zip" />
</Target>
<Target Name="Commit" DependsOnTargets="Compile">
<RegistryRead KeyName="HKEY_LOCAL_MACHINE\SOFTWARE\BuildServer" ValueName="GoogleUser">
<Output TaskParameter="Value" PropertyName="GoogleUser" />
</RegistryRead>
<RegistryRead KeyName="HKEY_LOCAL_MACHINE\SOFTWARE\BuildServer" ValueName="GooglePassword">
<Output TaskParameter="Value" PropertyName="GooglePassword" />
</RegistryRead>
<SvnCommit
Targets="@(CommitFiles)"
Message="Auto commit from MSBuild."
Username="$(GoogleUser)"
Password="$(GooglePassword)" />
</Target>
<Target Name="Nightly" DependsOnTargets="Zip;Commit">
</Target>
</Project>