csharpfftfsharpintegrationinterpolationlinear-algebramathdifferentiationmatrixnumericsrandomregressionstatisticsmathnet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
149 lines
8.5 KiB
149 lines
8.5 KiB
<!-- Sample MSBuild project file for Sandcastle.
|
|
|
|
To build the sample, use the following command:
|
|
msbuild example.proj
|
|
|
|
By default, this script builds the output using the 'prototype' look-and-feel. You
|
|
can choose a different output style by adding one of the following options to the
|
|
command line:
|
|
/property:PresentationStyle=vs2005
|
|
/property:PresentationStyle=hana
|
|
/property:PresentationStyle=prototype
|
|
|
|
The default target is "Chm", which builds a CHM file for the test assembly. You can
|
|
also specify one of the following targets on the command line:
|
|
/target:Clean - removes all generated files
|
|
/target:HxS - builds HxS file for Visual Studio in addition to CHM
|
|
|
|
NOTE: To build an HxS you must have the "Microsoft Help 2.0 SDK" installed.
|
|
-->
|
|
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup>
|
|
<!-- Project Setup -->
|
|
<PresentationStyle Condition="'$(PresentationStyle)' == ''">vs2005</PresentationStyle>
|
|
<OutputAssembly>test.dll</OutputAssembly>
|
|
<OutputDir>Output</OutputDir>
|
|
<ChmDir>chm</ChmDir>
|
|
<Comments>comments.xml</Comments>
|
|
|
|
<!-- Environment -->
|
|
<Framework>$(WINDIR)\Microsoft.NET\Framework\v2.0.50727</Framework>
|
|
<ProductionTools>$(DxRoot)\ProductionTools</ProductionTools>
|
|
<ProductionTransforms>$(DxRoot)\ProductionTransforms</ProductionTransforms>
|
|
<Presentation>$(DxRoot)\Presentation\$(PresentationStyle)</Presentation>
|
|
</PropertyGroup>
|
|
|
|
<!--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>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="*.cs" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="Build" DependsOnTargets="Clean;FxReflection;Compile;Chm" />
|
|
|
|
<Target Name="Clean">
|
|
<RemoveDir Directories="$(OutputDir)" ContinueOnError="true" />
|
|
<RemoveDir Directories="$(ChmDir)" ContinueOnError="true" />
|
|
<Delete Files="$(OutputAssembly);reflection.xml;ChmProject.hhp;$(Comments)" TreatErrorsAsWarnings="true" />
|
|
</Target>
|
|
|
|
<Target Name="FxReflection">
|
|
<!--
|
|
<Exec Command="$(Framework)\msbuild fxReflection.proj /property:PresentationStyle=$(PresentationStyle)" />
|
|
-->
|
|
</Target>
|
|
|
|
<Target Name="Compile" Inputs="@(Compile)" Outputs="$(OutputAssembly);$(Comments)">
|
|
<Csc Sources="@(Compile)"
|
|
OutputAssembly="$(OutputAssembly)"
|
|
TargetType="library"
|
|
DocumentationFile="$(Comments)"
|
|
/>
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<IconFiles Include="$(Presentation)\icons\**\*.*" />
|
|
<ScriptFiles Include="$(Presentation)\scripts\**\*.*" />
|
|
<StyleFiles Include="$(Presentation)\styles\**\*.*" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="Template" Condition="!Exists('$(OutputDir)')">
|
|
<Copy SourceFiles="@(IconFiles)" DestinationFiles="@(IconFiles->'$(OutputDir)\icons\%(RecursiveDir)%(FileName)%(Extension)')" />
|
|
<Copy SourceFiles="@(ScriptFiles)" DestinationFiles="@(ScriptFiles->'$(OutputDir)\scripts\%(RecursiveDir)%(FileName)%(Extension)')" />
|
|
<Copy SourceFiles="@(StyleFiles)" DestinationFiles="@(StyleFiles->'$(OutputDir)\styles\%(RecursiveDir)%(FileName)%(Extension)')" />
|
|
<MakeDir Directories="$(OutputDir)\html;$(OutputDir)\media;$(OutputDir)\intellisense" />
|
|
</Target>
|
|
|
|
<Target Name="ReflectionData" DependsOnTargets="Template" Inputs="$(OutputAssembly)" Outputs="reflection.xml">
|
|
<Exec Command='"$(ProductionTools)\MRefBuilder.exe" "$(OutputAssembly)" /out:"$(OutputDir)\reflection_base.xml"' />
|
|
<Exec Condition="'$(PresentationStyle)' == 'prototype'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\ApplyPrototypeDocModel.xsl" /xsl:"$(ProductionTransforms)\AddGuidFilenames.xsl" "$(OutputDir)\reflection_base.xml" /out:"reflection.xml"' />
|
|
<Exec Condition="'$(PresentationStyle)' == 'vs2005'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\ApplyVSDocModel.xsl" /xsl:"$(ProductionTransforms)\AddFriendlyFilenames.xsl" "$(OutputDir)\reflection_base.xml" /out:"reflection.xml" /arg:IncludeAllMembersTopic=true /arg:IncludeInheritedOverloadTopics=true' />
|
|
<Exec Condition="'$(PresentationStyle)' == 'hana'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\ApplyVSDocModel.xsl" /xsl:"$(ProductionTransforms)\AddFriendlyFilenames.xsl" "$(OutputDir)\reflection_base.xml" /out:"reflection.xml" /arg:IncludeAllMembersTopic=false /arg:IncludeInheritedOverloadTopics=true' />
|
|
</Target>
|
|
|
|
<Target Name="Manifest" DependsOnTargets="ReflectionData" Inputs="reflection.xml" Outputs="$(OutputDir)\manifest.xml">
|
|
<Exec Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\ReflectionToManifest.xsl" "reflection.xml" /out:"$(OutputDir)\manifest.xml"' />
|
|
</Target>
|
|
|
|
<Target Name="Html"
|
|
Inputs="$(OutputDir)\manifest.xml;reflection.xml;$(Comments)"
|
|
Outputs="$(DocumentationDir)\html\*.htm"
|
|
DependsOnTargets="Manifest">
|
|
<Exec Command='"$(ProductionTools)\BuildAssembler.exe" /config:"$(Presentation)\configuration\sandcastle.config" "$(OutputDir)\manifest.xml"' />
|
|
</Target>
|
|
|
|
<Target Name="Chm"
|
|
Inputs="$(DocumentationDir)\html\*.htm;reflection.xml"
|
|
Outputs="$(OutputDir)\test.chm;$(OutputDir)\toc.xml"
|
|
DependsOnTargets="Html">
|
|
|
|
<Exec Condition="'$(PresentationStyle)' == 'prototype'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\CreatePrototypeToc.xsl" reflection.xml /out:"$(OutputDir)\Toc.xml"' />
|
|
<Exec Condition="'$(PresentationStyle)' != 'prototype'" Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\CreateVSToc.xsl" reflection.xml /out:"$(OutputDir)\Toc.xml"' />
|
|
|
|
<MakeDir Directories="$(chmDir)" Condition="!Exists('$(chmDir)')" />
|
|
<MakeDir Directories="$(chmDir)\Html" Condition="!Exists('$(chmDir)\Html')" />
|
|
<MakeDir Directories="$(chmDir)\Icons" Condition="!Exists('$(chmDir)\Icons')" />
|
|
<MakeDir Directories="$(chmDir)\Scripts" Condition="!Exists('$(chmDir)\Scripts')" />
|
|
<MakeDir Directories="$(chmDir)\Styles" Condition="!Exists('$(chmDir)\Styles')" />
|
|
<MakeDir Directories="$(chmDir)\Local" Condition="!Exists('$(chmDir)\Local')" />
|
|
|
|
<!--copy directories from hxs -->
|
|
<Exec Condition="Exists('$(chmDir)\Icons')" Command="xcopy.exe $(OutputDir)\Icons\* $(chmDir)\Icons\ /y /r" />
|
|
<Exec Condition="Exists('$(chmDir)\Scripts')" Command="xcopy.exe $(OutputDir)\Scripts\* $(chmDir)\Scripts\ /y /r" />
|
|
<Exec Condition="Exists('$(chmDir)\Styles')" Command="xcopy.exe $(OutputDir)\Styles\* $(chmDir)\Styles\ /y /r" />
|
|
<Exec Condition="Exists('$(chmDir)s\Local')" Command="xcopy.exe $(chmDir)\Local\* $(chmDir)\Local\ /y /r" />
|
|
|
|
<!-- generate CHM-specific HTML and HH* files -->
|
|
<Exec Command=""$(ProductionTools)\ChmBuilder.exe" /project:test /html:$(OutputDir)\html /lcid:1033 /toc:$(OutputDir)\Toc.xml /out:$(chmDir)" />
|
|
|
|
<Exec Command=""$(ProductionTools)\DBCSFix.exe" /d:$(chmDir) /l:1033" />
|
|
|
|
<Exec Command='"$(ToolsPath)\HTML Help Workshop\hhc.exe" "$(chmDir)\test.hhp"' IgnoreExitCode="true" />
|
|
</Target>
|
|
|
|
<Target Name="HxS"
|
|
DependsOnTargets="Build"
|
|
Inputs="$(DocumentationDir)\html\*.htm;$(OutputDir)\toc.xml"
|
|
Outputs="$(OutputDir)\test.hxs">
|
|
<Copy SourceFiles="@(HxsFiles)" DestinationFiles="@(HxsFiles->'$(OutputDir)\%(RecursiveDir)%(FileName)%(Extension)')" />
|
|
<Exec Command='"$(DXROOT)\Presentation\shared\copyhavana.bat" test' />
|
|
<Exec Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\CreateHxc.xsl" $(OutputDir)\toc.xml /out:"$(OutputDir)\test.HxC" /arg:fileNamePrefix=test' />
|
|
<Exec Command='"$(ProductionTools)\XslTransform.exe" /xsl:"$(ProductionTransforms)\TocToHxSContents.xsl" $(OutputDir)\toc.xml /out:"$(OutputDir)\test.HxT"' />
|
|
<Exec Command='"$(ToolsPath)\Microsoft Help 2.0 SDK\hxcomp.exe" -p $(OutputDir)\test.hxc' IgnoreExitCode="true" />
|
|
</Target>
|
|
|
|
</Project>
|
|
|