File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -168,12 +168,6 @@ if (!$NoBuild.IsPresent) {
168168 Get-Item " $PSScriptRoot /src/Modules/PackageManagement/1.1.7.0/fullclr" - ErrorAction SilentlyContinue |
169169 Remove-Item - Recurse - Force - ErrorAction SilentlyContinue
170170
171- # TODO: Remove this once the SDK properly bundles modules
172- Get-WebFile - Url ' https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1' `
173- - OutFile " $PSScriptRoot /src/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1"
174- Get-WebFile - Url ' https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1' `
175- - OutFile " $PSScriptRoot /src/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1"
176-
177171 dotnet publish - c $Configuration " /p:BuildNumber=$BuildNumber " $PSScriptRoot
178172
179173 if ($AddSBOM )
Original file line number Diff line number Diff line change @@ -164,19 +164,6 @@ function Resolve-ProtoBufToolPath
164164 }
165165}
166166
167- function Get-WebFile {
168- param (
169- [string ] $Url ,
170- [string ] $OutFile
171- )
172- $directoryName = [System.IO.Path ]::GetDirectoryName($OutFile )
173- if (! (Test-Path $directoryName )) {
174- New-Item - Type Directory $directoryName
175- }
176- Remove-Item $OutFile - ErrorAction SilentlyContinue
177- Invoke-RestMethod $Url - OutFile $OutFile
178- }
179-
180167function Write-Log
181168{
182169 param (
You can’t perform that action at this time.
0 commit comments