File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 41
41
inputs :
42
42
command : custom
43
43
custom : msbuild
44
- arguments : ' tools\Az.Tools.Predictor\build.proj /target:"Clean;Build" /p:Configuration=Release'
44
+ arguments : ' tools\Az.Tools.Predictor\build.proj /target:"Clean;Build;GenerateHelp " /p:Configuration=Release'
45
45
46
46
- task : UseDotNet@2
47
47
displayName : ' Install DotNet 2.1 Runtime for Signing'
Original file line number Diff line number Diff line change
1
+ # Requires -Modules platyPS
2
+ [CmdletBinding ()]
3
+ Param (
4
+ [Parameter ()]
5
+ [string ]$ArtifactFolder ,
6
+ [Parameter ()]
7
+ [string ]$ModuleName
8
+ )
9
+
10
+ $ModuleFolder = Join-Path - Path $ArtifactFolder - ChildPath $ModuleName
11
+ $TempDocFolder = Join-Path - Path $ArtifactFolder - ChildPath $ModuleName ' .Doc'
12
+ Import-Module $ModuleFolder
13
+ New-MarkdownHelp - Module $ModuleName - OutputFolder $TempDocFolder
14
+ New-ExternalHelp –Path $TempDocFolder - OutputPath $ModuleFolder
Original file line number Diff line number Diff line change 3
3
xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" Target =" Build" >
4
4
5
5
<Import Project =" $(MSBuildThisFileDirectory)..\..\Repo.props" />
6
+ <PropertyGroup >
7
+ <PowerShellCoreCommandPrefix >pwsh -NonInteractive -NoLogo -NoProfile -Command</PowerShellCoreCommandPrefix >
8
+ </PropertyGroup >
6
9
7
10
<PropertyGroup >
8
11
<Configuration Condition =" '$(Configuration)' != 'Release'" >Debug</Configuration >
31
34
<Exec Command =" dotnet $(BuildAction) $(ModuleSolutionFile) -c $(Configuration)" />
32
35
</Target >
33
36
37
+ <Target Name =" GenerateHelp" >
38
+ <Exec Command =" $(PowerShellCoreCommandPrefix) " .\GenerateHelp -ArtifactFolder $(ArtifactFolder) -ModuleName $(ModuleName)" />
39
+ </Target >
40
+
34
41
<Target Name =" Test" DependsOnTargets =" Build" >
35
42
<Message Importance =" high" Text =" Running check in tests..." />
36
43
<MakeDir Directories =" $(TestOutputDirectory)" ContinueOnError =" false" />
You can’t perform that action at this time.
0 commit comments