Skip to content

Commit 6ac5aae

Browse files
Fix InsertJsonValues script (#337)
* Fix InsertJsonValues script I believe that `LibraryName` here is a typo considering that it is in a loop and we couldn't just replace it with a fixed string (even one that is specific to the repo) * Fix vsman file URL formatting * Update Expand-Template.ps1
1 parent 6654a67 commit 6ac5aae

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Expand-Template.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ try {
172172
'LibraryNoDots' = $LibraryName.Replace('.','');
173173
}
174174

175-
Replace-Placeholders -Path "tools/variables/InsertJsonValues.ps1" -Replacements @{
176-
'LibraryName' = $LibraryName;
177-
}
178-
179175
Replace-Placeholders -Path "tools/variables/SymbolsFeatureName.ps1" -Replacements @{
180176
'LibraryName' = $LibraryName;
181177
}

tools/variables/InsertJsonValues.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (Test-Path $BasePath) {
1111
Get-ChildItem $BasePath *.vsman -Recurse -File |% {
1212
$version = (Get-Content $_.FullName | ConvertFrom-Json).info.buildVersion
1313
$fn = $_.Name
14-
$vsmanFiles += "LibraryName.vsman{$version}=https://vsdrop.corp.microsoft.com/file/v1/$vstsDropNames;$fn"
14+
$vsmanFiles += "$fn{$version}=https://vsdrop.corp.microsoft.com/file/v1/$vstsDropNames;$fn"
1515
}
1616

1717
[string]::join(',',$vsmanFiles)

0 commit comments

Comments
 (0)