Skip to content

Commit fe94521

Browse files
authored
Compile type information from YAML (#91)
* Add WorkItemClassificationNode YAML * Convert TfsCmdlets.Types.ps1xml to YAML * Use module PsTypesGen to regenerate XML from YAML * Rename module * Fix build script * Change installed modules
1 parent 5852baa commit fe94521

19 files changed

+362
-507
lines changed

Build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Param
1717
Function Install-Dependencies
1818
{
1919
$NugetPackages = @('GitVersion.CommandLine')
20-
$PsModules = @('InvokeBuild', 'psake', 'PsScriptAnalyzer', 'VSSetup')
20+
$PsModules = @('psake', 'PsScriptAnalyzer', 'VSSetup', 'PSYaml', 'Ps1xmlgen')
2121

2222
$script:PackagesDir = Join-Path $SolutionDir 'packages'
2323

@@ -131,9 +131,9 @@ try
131131
Write-Verbose "=== SET BUILD NAME ==="
132132

133133
$GitVersionPath = Join-Path $SolutionDir 'packages\gitversion.commandline\tools\GitVersion.exe'
134-
$script:VersionMetadata = (& $GitVersionPath | ConvertFrom-Json)
134+
$VersionMetadata = (& $GitVersionPath | ConvertFrom-Json)
135135
$ProjectBuildNumber = ((Get-Date) - $RepoCreationDate).Days
136-
$BuildName = ($VersionMetadata.FullSemVer -replace '\\+', "\\+$ProjectBuildNumber\\.")
136+
$BuildName = $VersionMetadata.FullSemVer.Replace('+', "+$ProjectBuildNumber.")
137137

138138
$VersionMetadata | Write-Verbose
139139

0 commit comments

Comments
 (0)