forked from ligershark/side-waffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
63 lines (51 loc) · 2.28 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
61
62
63
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="FulLBuild">
<!--
msbuild.exe build.proj
-->
<PropertyGroup>
<SourceRoot Condition=" '$(SourceRoot)'=='' ">$(MSBuildProjectDirectory)\</SourceRoot>
<OutputRootNoTrailingSlash Condition=" '$(OutputRoot)'=='' ">$(SourceRoot)OutputRoot</OutputRootNoTrailingSlash>
<OutputRoot Condition=" '$(OutputRoot)'=='' ">$(OutputRootNoTrailingSlash)\</OutputRoot>
<DevFolder Condition=" '$(DevFolder)'=='' ">c:\temp\msbuild\</DevFolder>
<RestorePackages Condition=" '$(RestorePackages)'=='' ">true</RestorePackages>
<VisualStudioVersion Condition=" '$(VisualStudioVersion)'=='' ">11.0</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration>
</PropertyGroup>
<ItemGroup>
<!--<ToolsItems Include="$(SourceRoot)Tools\**\*" />-->
<ContentItems Include="$(SourceRoot)content\**\*">
<DestDir>%(RecursiveDir)</DestDir>
</ContentItems>
<ProjectsToBuild Include="$(SourceRoot)TemplatePack\TemplatePack.csproj" />
</ItemGroup>
<PropertyGroup>
<FullBuildDependsOn>
CoreFullBuild;
</FullBuildDependsOn>
</PropertyGroup>
<Target Name="FullBuild" DependsOnTargets="$(FullBuildDependsOn)"/>
<Target Name="CoreFullBuild">
<PropertyGroup>
<_MSBProperties>VisualStudioVersion=$(VisualStudioVersion);Configuration=$(Configuration);OutputPath=$(OutputRoot);RestorePackages=$(RestorePackages)</_MSBProperties>
<_MSBProperties Condition=" '$(TemplateBuilderTargets)'!='' ">$(_MSBProperties);TemplateBuilderTargets=$(TemplateBuilderTargets)</_MSBProperties>
</PropertyGroup>
<MSBuild Projects="@(ProjectsToBuild)"
Properties="$(_MSBProperties)"/>
</Target>
<Target Name="CleanAndInitalize">
<MakeDir Directories="$(OutputRoot)"/>
<MakeDir Directories="$(PackageRoot)"/>
<ItemGroup>
<_FilesToDelete Remove="@(_FilesToDelete)"/>
<_FilesToDelete Include="$(OutputRoot)**\*"/>
</ItemGroup>
<Delete Files="@(_FilesToDelete)"/>
<ItemGroup>
<_FilesToDelete Remove="@(_FilesToDelete)"/>
<_FilesToDelete Include="$(PackageRoot)**\*"/>
</ItemGroup>
<Delete Files="@(_FilesToDelete)"/>
</Target>
</Project>