-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.directory.build.targets
67 lines (54 loc) · 2.46 KB
/
example.directory.build.targets
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
<Project>
<!--
If you want to use this file, rename it to ' directory.build.targets' and place it
in the project directory, or in any directory above. It will be picked up by MSBuild.
You may have to close and reopen the project for this to work.
-->
<!--
Uncomment the following section to override 'UpdateDocFxVersionAttribute' target to change how
the target is being called or to disable the target alltogether
-->
<!--
<Target Name="UpdateDocFxVersionAttribute" AfterTargets="Build" BeforeTargets="DocBuild">
<UpdateDocFxVersionAttributeTask DllPath="$(UpdateDocFxVersionAttributeTask_DllPath)" />
</Target>
-->
<PropertyGroup>
<!--
'UpdateDocFxVersionAttributeTask_DllPath' can be overridden. Default is currently built dll
Uncomment and adjust the following section to override 'UpdateDocFxVersionAttributeTask_DllPath'
-->
<!--
<UpdateDocFxVersionAttributeTask_DllPath>bin\release\myApp.dll</UpdateDocFxVersionAttributeTask_DllPath>
-->
<!--
'UpdateDocFxVersionAttributeTask_DocFxJsonPath' can be overridden. Default is 'docfx.json'
Uncomment and adjust the following section to override 'UpdateDocFxVersionAttributeTask_DocFxJsonPath'
-->
<!--
<UpdateDocFxVersionAttributeTask_DocFxJsonPath>..\..\MySeparateDocFxProject\docfx.json</UpdateDocFxVersionAttributeTask_DocFxJsonPath>
-->
</PropertyGroup>
<!--
Execute 'DocFx serve' only after successful build of docs.
This has nothing to do with 'UpdateDocFxVersionAttributeTask',
this is a plain call to 'docFx.exe serve' wrapped in a target.
It is displayed here as an example of how to serve the docs after build.
The target opens a command window but is not blocking the build process.
-->
<PropertyGroup>
<!-- Adjust this to specify your doc sites folder. DocFx default is '_site' -->
<DocSiteFolder>_site</DocSiteFolder>
<!-- Adjust this to specify the port number to serve the doc site on. Default is 8080. -->
<DocSiteServingPort>8080</DocSiteServingPort>
</PropertyGroup>
<!--
If you want to run 'DocFx serve' automatically after build,
uncomment the following section:
-->
<!--
<Target Name="DocServe" Condition="'$(BuildDocFx)' == 'true'" AfterTargets="DocBuild">
<Exec Command="powershell start-process -FilePath docfx -ArgumentList 'serve "$(ProjectDir)$(DocSiteFolder)" -p $(DocSiteServingPort)'" />
</Target>
-->
</Project>