forked from devlooped/moq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Moq.Help.scproj
180 lines (159 loc) · 13 KB
/
Moq.Help.scproj
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Chm">
<PropertyGroup>
<Name>Moq</Name>
<TopicStyle>vs2005</TopicStyle>
<LanguageId>1033</LanguageId>
<BuildDir>Help</BuildDir>
<DllDir>$(BuildDir)\dll</DllDir>
<DependencyDir>$(DllDir)\dependency</DependencyDir>
<CommentsDir>$(BuildDir)\comments</CommentsDir>
<TopicStyleDir>$(BuildDir)\$(TopicStyle)</TopicStyleDir>
<OutputDir>$(TopicStyleDir)\output</OutputDir>
<ProductionTools>$(DxRoot)\ProductionTools</ProductionTools>
<ProductionTransforms>$(DxRoot)\ProductionTransforms</ProductionTransforms>
<GenericDir>$(DXROOT)\Examples\Generic</GenericDir>
<Internal>false</Internal>
</PropertyGroup>
<ItemGroup>
<Dlls Include="Source\bin\Release\Moq.dll" />
<Comments Include="Source\bin\Release\Moq.xml" />
</ItemGroup>
<!--chm/hxs compiliers are installed under '$(ProgramFiles) (x86)' folder on 64-bit machine. -->
<Choose>
<When Condition="Exists('$(ProgramFiles) (x86)')">
<PropertyGroup>
<ToolsPath>$(ProgramFiles(x86))</ToolsPath>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<ToolsPath>$(ProgramFiles)</ToolsPath>
</PropertyGroup>
</Otherwise>
</Choose>
<Target Name="CopySrcFiles" DependsOnTargets="CreateDirectories">
<Exec Command="copy "%(Dlls.FullPath)" "$(DllDir)\%(Dlls.Filename)%(Dlls.Extension)"" />
<Exec Command="copy "%(Comments.FullPath)" "$(CommentsDir)\%(Comments.Filename)%(Comments.Extension)""
Condition="@(Comments)!=''"/>
<Exec Command="copy "%(Dependents.FullPath)" "$(DependencyDir)\%(Dependents.Filename)%(Dependents.Extension)""
Condition="@(Dependents)!=''"/>
</Target>
<!--Creating Directories...-->
<Target Name="CreateDirectories" >
<!--Deleting Directories-->
<Message Text="Deleting Directories..." />
<RemoveDir Condition="Exists('$(TopicStyleDir)')" Directories="$(TopicStyleDir)" />
<RemoveDir Condition="Exists('$(DllDir)')" Directories="$(DllDir)" />
<RemoveDir Condition="Exists('$(CommentsDir)')" Directories="$(CommentsDir)" />
<Message Text="Creating Directories..." />
<MakeDir Directories="$(BuildDir)" Condition="!Exists('$(BuildDir)')" />
<MakeDir Directories="$(DllDir)" Condition="!Exists('$(DllDir)')" />
<MakeDir Directories="$(CommentsDir)" Condition="!Exists('$(CommentsDir)')" />
<MakeDir Directories="$(DependencyDir)" Condition="!Exists('$(DependencyDir)')" />
<MakeDir Directories="$(TopicStyleDir)" Condition="!Exists('$(TopicStyleDir)')" />
<MakeDir Directories="$(TopicStyleDir)\output" Condition="!Exists('$(TopicStyleDir)\output')" />
<MakeDir Directories="$(TopicStyleDir)\output\html" Condition="!Exists('$(TopicStyleDir)\output\html')" />
<MakeDir Directories="$(TopicStyleDir)\output\icons" Condition="!Exists('$(TopicStyleDir)\output\icons')" />
<!--<MakeDir Directories="$(TopicStyleDir)\output\media" Condition="!Exists('$(TopicStyleDir)\output\media')" />-->
<MakeDir Directories="$(TopicStyleDir)\output\scripts" Condition="!Exists('$(TopicStyleDir)\output\scripts')" />
<MakeDir Directories="$(TopicStyleDir)\output\styles" Condition="!Exists('$(TopicStyleDir)\output\styles')" />
</Target>
<!--Creating web Directories...-->
<Target Name="CreateWebDirs" Condition="$(WebBuild)=='true'" >
<Message Text="Creating web Directories..." />
<MakeDir Directories="$(TopicStyleDir)\output\TopicInfo" Condition="!Exists('$(TopicStyleDir)\output\TopicInfo')" />
<MakeDir Directories="$(TopicStyleDir)\website" Condition="!Exists('$(TopicStyleDir)\website')" />
<MakeDir Directories="$(TopicStyleDir)\website\api" Condition="!Exists('$(TopicStyleDir)\website\api')" />
<MakeDir Directories="$(TopicStyleDir)\website\icons" Condition="!Exists('$(TopicStyleDir)\website\icons')" />
<MakeDir Directories="$(TopicStyleDir)\website\styles" Condition="!Exists('$(TopicStyleDir)\website\styles')" />
</Target>
<!--Call MRefBuilder-->
<Target Name="Reflection" DependsOnTargets="CreateDirectories;CopySrcFiles">
<Exec Command='"$(ProductionTools)\MRefBuilder" "$(DllDir)\*.dll" "$(DllDir)\*.exe" /out:"$(TopicStyleDir)\reflection.org" /dep:"$(DependencyDir)\*.dll","$(DependencyDir)\*.exe"' Condition="$(Internal)=='false'" />
<Exec Command='"$(ProductionTools)\MRefBuilder" "$(DllDir)\*.dll" "$(DllDir)\*.exe" /out:"$(TopicStyleDir)\reflection.org" /dep:"$(DependencyDir)\*.dll","$(DependencyDir)\*.exe" /internal+' Condition="$(Internal)=='true'" />
<Exec Condition="'$(TopicStyle)' == 'prototype'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\ApplyPrototypeDocModel.xsl" /xsl:"$(ProductionTransforms)\AddGuidFilenames.xsl" "$(TopicStyleDir)\reflection.org" /out:"$(TopicStyleDir)\reflection.xml"' />
<Exec Condition="'$(TopicStyle)' == 'vs2005'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\ApplyVSDocModel.xsl" /xsl:"$(ProductionTransforms)\AddFriendlyFilenames.xsl" "$(TopicStyleDir)\reflection.org" /out:"$(TopicStyleDir)\reflection.xml" /arg:IncludeAllMembersTopic=true /arg:IncludeInheritedOverloadTopics=true' />
<Exec Condition="'$(TopicStyle)' == 'hana'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\ApplyVSDocModel.xsl" /xsl:"$(ProductionTransforms)\AddFriendlyFilenames.xsl" "$(TopicStyleDir)\reflection.org" /out:"$(TopicStyleDir)\reflection.xml" /arg:IncludeAllMembersTopic=false /arg:IncludeInheritedOverloadTopics=true' />
</Target>
<!--Copy icons,styles and scripts to output-->
<Target Name="CopyOutput" DependsOnTargets="Reflection">
<Message Text="Copy icons, styles and scripts to Output..." />
<Exec Command='copy "$(DXROOT)\Presentation\$(TopicStyle)\icons\*" "$(TopicStyleDir)\output\icons\"' />
<Exec Command='copy "$(DXROOT)\Presentation\$(TopicStyle)\scripts\*" "$(TopicStyleDir)\output\scripts\"' />
<Exec Command='copy "$(DXROOT)\Presentation\$(TopicStyle)\styles\*" "$(TopicStyleDir)\output\styles\"' />
</Target>
<Target Name="Manifest" DependsOnTargets="Reflection">
<Exec Command='"$(ProductionTools)\XslTransform" /xsl:"%DXROOT%\ProductionTransforms\ReflectionToManifest.xsl" reflection.xml /out:manifest.xml'
WorkingDirectory="$(TopicStyleDir)" />
</Target>
<!--Generate an intermediate Toc file that simulates the Whidbey TOC format-->
<Target Name="Toc" DependsOnTargets="Manifest;CopyOutput;CreateWebDirs">
<Message Text="Generate an intermediate Toc file that simulates the Whidbey TOC format...." />
<Exec Condition="$(TopicStyle) == 'prototype'" Command='"$(ProductionTools)\XslTransform" /xsl:"$(DXROOT)\ProductionTransforms\createPrototypetoc.xsl" "$(TopicStyleDir)\reflection.xml" /out:"$(TopicStyleDir)\toc.xml"' />
<Exec Condition="$(TopicStyle) != 'prototype'" Command='"$(ProductionTools)\XslTransform" /xsl:"$(DXROOT)\ProductionTransforms\createvstoc.xsl" "$(TopicStyleDir)\reflection.xml" /out:"$(TopicStyleDir)\toc.xml"' />
</Target>
<!--Call MRefBuilder-->
<Target Name="Html" DependsOnTargets="Toc">
<Message Text="Call BuildAssembler..." />
<Exec Command='set reflectionfile=$(TopicStyleDir)\reflection.xml& set CommentsDir=$(CommentsDir)& set OutputDir=$(TopicStyleDir)\output\html& "$(ProductionTools)\BuildAssembler" /config:"$(GenericDir)\$(TopicStyle).config" "$(TopicStyleDir)\manifest.xml"' Condition="$(WebBuild)!='true' And $(MSHCBuild)!='true'" />
<Exec Command='set reflectionfile=$(TopicStyleDir)\reflection.xml& set CommentsDir=$(CommentsDir)& set OutputDir=$(TopicStyleDir)\output\html& "$(ProductionTools)\BuildAssembler" /config:"$(GenericDir)\vs2005-web.config" "$(TopicStyleDir)\manifest.xml"' Condition="$(WebBuild)=='true'" />
<Exec Command='set tocfile=$(TopicStyleDir)\toc.xml& set reflectionfile=$(TopicStyleDir)\reflection.xml& set CommentsDir=$(CommentsDir)& set OutputDir=$(TopicStyleDir)\output\html& "$(ProductionTools)\BuildAssembler" /config:"$(GenericDir)\vs2005-mshc.config" "$(TopicStyleDir)\manifest.xml"' Condition="$(MSHCBuild)=='true'" />
</Target>
<!-- Generate CHM help project -->
<Target Name="Chm" DependsOnTargets="Html">
<!-- Creating chm directories -->
<MakeDir Directories="$(TopicStyleDir)\chm" Condition="!Exists('$(TopicStyleDir)\chm')" />
<MakeDir Directories="$(TopicStyleDir)\chm\html" Condition="!Exists('$(TopicStyleDir)\chm\html')" />
<MakeDir Directories="$(TopicStyleDir)\chm\icons" Condition="!Exists('$(TopicStyleDir)\chm\icons')" />
<MakeDir Directories="$(TopicStyleDir)\chm\scripts" Condition="!Exists('$(TopicStyleDir)\chm\scripts')" />
<MakeDir Directories="$(TopicStyleDir)\chm\styles" Condition="!Exists('$(TopicStyleDir)\chm\styles')" />
<!--<MakeDir Directories="$(TopicStyleDir)\chm\media" Condition="!Exists('$(TopicStyleDir)\chm\media')" />-->
<!-- Copy icons,styles and scripts from output to chm -->
<Exec Command='xcopy "$(TopicStyleDir)\output\icons\*" "$(TopicStyleDir)\chm\icons\" /y /r'/>
<!--<Exec Command='xcopy "$(TopicStyleDir)\output\media\*" "$(TopicStyleDir)\chm\media\" /y /r'/>-->
<Exec Command='xcopy "$(TopicStyleDir)\output\scripts\*" "$(TopicStyleDir)\chm\scripts\" /y /r'/>
<Exec Command='xcopy "$(TopicStyleDir)\output\styles\*" "$(TopicStyleDir)\chm\styles\" /y /r'/>
<Exec Command='"$(ProductionTools)\ChmBuilder.exe" /project:$(Name) /html:"$(TopicStyleDir)\Output\html" /lcid:$(LanguageId) /toc:"$(TopicStyleDir)\Toc.xml" /out:"$(TopicStyleDir)\Chm"' />
<Exec Command='"$(ProductionTools)\DBCSFix.exe" /d:"$(TopicStyleDir)\chm" /l:$(LanguageId)' />
<Exec Command='"$(ToolsPath)\HTML Help Workshop\hhc.exe" "$(TopicStyleDir)\chm\$(Name).hhp"' IgnoreExitCode="true" />
<!--<Exec Command='sbapplocale $(LanguageId) "$(ProgramFiles)\HTML Help Workshop\hhc.exe" "$(TopicStyleDir)\chm\$(Name).hhp"' IgnoreExitCode="true" />-->
</Target>
<!-- Generate HxS help project -->
<Target Name="Hxs" DependsOnTargets="Html">
<Message Text="Generate HxS help project...." />
<Exec Command='copy "$(DXROOT)\Presentation\shared\HxsTemplate\template.HxF" "$(TopicStyleDir)\output\$(Name).HxF"' />
<Exec Command='copy "$(DXROOT)\Presentation\shared\HxsTemplate\template_A.HxK" "$(TopicStyleDir)\output\$(Name)_A.Hxk"' />
<Exec Command='copy "$(DXROOT)\Presentation\shared\HxsTemplate\template_B.HxK" "$(TopicStyleDir)\output\$(Name)_B.Hxk"' />
<Exec Command='copy "$(DXROOT)\Presentation\shared\HxsTemplate\template_F.HxK" "$(TopicStyleDir)\output\$(Name)_F.Hxk"' />
<Exec Command='copy "$(DXROOT)\Presentation\shared\HxsTemplate\template_K.HxK" "$(TopicStyleDir)\output\$(Name)_K.Hxk"' />
<Exec Command='copy "$(DXROOT)\Presentation\shared\HxsTemplate\template_N.HxK" "$(TopicStyleDir)\output\$(Name)_N.Hxk"' />
<Exec Command='copy "$(DXROOT)\Presentation\shared\HxsTemplate\template_S.HxK" "$(TopicStyleDir)\output\$(Name)_S.Hxk"' />
<Exec Command='"$(ProductionTools)\XslTransform" /xsl:"$(DXROOT)\ProductionTransforms\CreateHxc.xsl" "$(TopicStyleDir)\toc.xml" /arg:fileNamePrefix=$(Name) /out:"$(TopicStyleDir)\Output\$(Name).HxC"' />
<Exec Command='"$(ProductionTools)\XslTransform" /xsl:"$(DXROOT)\ProductionTransforms\TocToHxSContents.xsl" "$(TopicStyleDir)\toc.xml" /out:"$(TopicStyleDir)\Output\$(Name).HxT"' />
<!--generate hxs -->
<Exec Command='"$(ToolsPath)\Microsoft Help 2.0 SDK\hxcomp.exe" -p "$(TopicStyleDir)\output\$(Name).hxc"' IgnoreExitCode="true" />
</Target>
<Target Name="CreateWebBuildProperty">
<CreateProperty Value="true">
<Output TaskParameter="Value" PropertyName="WebBuild" />
</CreateProperty>
</Target>
<!-- Generate web pages -->
<Target Name="Web" DependsOnTargets="CreateWebBuildProperty;Html" Condition="$(TopicStyle)=='vs2005'">
<Exec Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\Vs2005TocToDsToc.xsl" /arg:topicInfo="$(TopicStyleDir)\output\TopicInfo" /xsl:"$(ProductionTransforms)\DsTocToSitemap.xsl" "$(TopicStyleDir)\Toc.xml" /out:"$(TopicStyleDir)\website\api\web.sitemap"' />
<Exec Command='xcopy "$(TopicStyleDir)\output\icons\*" "$(TopicStyleDir)\website\icons\" /y /r'/>
<Exec Command='xcopy "$(TopicStyleDir)\output\styles\*" "$(TopicStyleDir)\website\styles\" /y /r'/>
<Exec Command='xcopy "$(DXROOT)\Presentation\vs2005\website\*" "$(TopicStyleDir)\website\" /y /r'/>
</Target>
<Target Name="CreateMSHCBuildProperty">
<CreateProperty
Value="true">
<Output
TaskParameter="Value"
PropertyName="MSHCBuild" />
</CreateProperty>
</Target>
<!-- Generate Microsoft Help System -->
<Target Name="MSHC" DependsOnTargets="CreateMSHCBuildProperty;Html" Condition="$(TopicStyle)=='vs2005'" />
</Project>