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 @@ -173,19 +173,6 @@ function Resolve-ProtoBufToolPath
173173 }
174174}
175175
176- function Get-WebFile {
177- param (
178- [string ] $Url ,
179- [string ] $OutFile
180- )
181- $directoryName = [System.IO.Path ]::GetDirectoryName($OutFile )
182- if (! (Test-Path $directoryName )) {
183- New-Item - Type Directory $directoryName
184- }
185- Remove-Item $OutFile - ErrorAction SilentlyContinue
186- Invoke-RestMethod $Url - OutFile $OutFile
187- }
188-
189176function Write-Log
190177{
191178 param (
You can’t perform that action at this time.
0 commit comments