File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,20 @@ Get-ChildItem -Recurse packages.config -Path $PSScriptRoot | foreach-object {
4141 Write-Host " Modified " $_.FullName
4242}
4343
44+ Get-ChildItem - Recurse Directory.Packages.props - Path $PSScriptRoot | foreach-object {
45+ $content = Get-Content $_.FullName - Raw
46+
47+ foreach ($nugetPackageToVersion in $nugetPackageToVersionTable.GetEnumerator ())
48+ {
49+ $newVersionString = ' PackageVersion Include="' + $nugetPackageToVersion.Key + ' " Version="' + $nugetPackageToVersion.Value + ' "'
50+ $oldVersionString = ' PackageVersion Include="' + $nugetPackageToVersion.Key + ' " Version="[-.0-9a-zA-Z]*"'
51+ $content = $content -replace $oldVersionString , $newVersionString
52+ }
53+
54+ Set-Content - Path $_.FullName - Value $content
55+ Write-Host " Modified " $_.FullName
56+ }
57+
4458Get-ChildItem - Recurse * .vcxproj - Path $PSScriptRoot | foreach-object {
4559 $content = Get-Content $_.FullName - Raw
4660
You can’t perform that action at this time.
0 commit comments