forked from reharik/KnowYourTurf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.proj
More file actions
61 lines (48 loc) · 2.23 KB
/
Copy pathbuild.proj
File metadata and controls
61 lines (48 loc) · 2.23 KB
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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Stage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ToolsPath>$(MSBuildProjectDirectory)\lib</ToolsPath>
<SourcePath>$(MSBuildProjectDirectory)</SourcePath>
<MSBuildCommunityTasksPath>$(ToolsPath)\MSBuildCommunityTasks</MSBuildCommunityTasksPath>
<NUnit>$(ToolsPath)\nunit</NUnit>
<Trunk>$(MSBuildProjectDirectory)..\..\</Trunk>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" />
<!-- ____________PUBLIC TASKS_______________ -->
<Target Name="Build" DependsOnTargets="_build;_unitTests" />
<Target Name="Stage" DependsOnTargets="_build;_unitTests;_outputWebFiles;" />
<Target Name="_outputWebFiles" >
<ItemGroup>
<WebFiles Include="KnowYourTurf.Web\**\*.*;"
Exclude="KnowYourTurf.Web\obj\**;
KnowYourTurf.Web\**\*.cs;
KnowYourTurf.Web\**\.idea\**;
KnowYourTurf.Web\**\.svn\**;
KnowYourTurf.Web\**\*.pdb;" />
</ItemGroup>
<Time>
<Output TaskParameter="Month" PropertyName="Month" />
<Output TaskParameter="Day" PropertyName="Day" />
<Output TaskParameter="Year" PropertyName="Year" />
<Output TaskParameter="Hour" PropertyName="Hour" />
<Output TaskParameter="Minute" PropertyName="Minute" />
</Time>
<PropertyGroup>
<OutputDirectory>g:\cannibalcoder\BuildFiles\KnowYourTurf\KYTWeb$(Month).$(Day).$(Year)-$(Hour).$(Minute)</OutputDirectory>
</PropertyGroup>
<MakeDir Directories="$(OutputDirectory)" />
<Copy SourceFiles="@(WebFiles)" DestinationFolder="$(OutputDirectory)\%(RecursiveDir)" />
</Target>
<Target Name="myTemp" >
<Message Text="Current Date and Time: $(Month).$(Day).$(Year)-$(Hour).$(Minute)" />
</Target>
<Target Name="_build">
<MSBuild Projects="$(SourcePath)\KnowYourTurf.sln" Properties="Configuration=Debug" ContinueOnError="false" />
</Target>
<ItemGroup>
<UnitTestAssemblies Include="$(SourcePath)\KnowYourTurf.UnitTests\bin\Debug\KnowYourTurf.UnitTests.dll;" />
</ItemGroup>
<Target Name="_unitTests">
<NUnit Assemblies="@(UnitTestAssemblies)" ToolPath="$(NUnit)" />
</Target>
</Project>