-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathIntroToRx.build
47 lines (40 loc) · 2.56 KB
/
IntroToRx.build
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- User defined properties-->
<PropertyGroup>
<MSBuildCommunityTasksPath>.\</MSBuildCommunityTasksPath>
<BuildVersion Condition="'$(BuildVersion)'==''">0.0.0.1</BuildVersion>
<Configuration Condition="'$(Configuration)'==''">Release</Configuration>
</PropertyGroup>
<Import Project=".\tools\MSBuild.Community.Tasks.Targets" />
<ItemGroup>
<Projects Include=".\KindleGenerator\KindleGenerator\KindleGenerator.csproj"/>
</ItemGroup>
<!-- Replace MySolutionName with the name of your solution and MyCompany with the name of you default namespace prefix (if any)-->
<PropertyGroup>
<OutputDirectory>.\KindleGenerator\KindleGenerator\bin\$(Configuration)</OutputDirectory>
<Configuration>Release</Configuration>
</PropertyGroup>
<!-- TODO: GenerateWord -->
<!-- TODO: GeneratePdf -->
<!-- TODO: Publish -->
<Target Name="Clean">
<RemoveDir Directories="$(OutputDirectory)" ContinueOnError="true"/>
<RemoveDir Directories="$(MSBuildStartupDirectory)\WebSite\content\v1.0.10621.0" ContinueOnError="true"/>
<RemoveDir Directories="$(MSBuildStartupDirectory)\bin\" ContinueOnError="true"/>
</Target>
<Target Name="Build" DependsOnTargets="Clean;">
<MSBuild Projects="@(Projects)"
Properties="Configuration=$(Configuration)" >
</MSBuild>
</Target>
<Target Name="GenerateWeb" DependsOnTargets="Clean;Build;">
<Exec Command=".\KindleGenerator\KindleGenerator\bin\$(Configuration)\KindleGenerator.exe -f WebSite -s "$(MSBuildStartupDirectory)\Content" -o "$(MSBuildStartupDirectory)\WebSite\content\v1.0.10621.0" "/>
</Target>
<Target Name="GenerateKindle" DependsOnTargets="Clean;Build;GenerateWeb;">
<Exec Command=".\KindleGenerator\KindleGenerator\bin\$(Configuration)\KindleGenerator.exe -f MOBI -s "$(MSBuildStartupDirectory)\Content" -o "$(MSBuildStartupDirectory)\bin\Content" -n "IntroToRx" -t "Introduction to Rx" -u "An introduction to the Microsoft's Reactive Extensions (Rx)." -a "Lee Campbell" -p "Amazon.com" "/>
<Exec Command="..\..\Tools\kindlegen.exe "IntroToRx.opf" -o "IntroToRx.mobi""
WorkingDirectory="$(MSBuildStartupDirectory)\bin\Content"/>
<Copy SourceFiles="$(MSBuildStartupDirectory)\bin\Content\IntroToRx.mobi" DestinationFolder="$(MSBuildStartupDirectory)\WebSite\content\v1.0.10621.0"/>
</Target>
</Project>