Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,6 @@ if (!$NoBuild.IsPresent) {
Get-Item "$PSScriptRoot/src/Modules/PackageManagement/1.1.7.0/fullclr" -ErrorAction SilentlyContinue |
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue

# TODO: Remove this once the SDK properly bundles modules
Get-WebFile -Url 'https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1' `
-OutFile "$PSScriptRoot/src/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1"
Get-WebFile -Url 'https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1' `
-OutFile "$PSScriptRoot/src/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1"

dotnet publish -c $Configuration "/p:BuildNumber=$BuildNumber" $PSScriptRoot

if ($AddSBOM)
Expand Down
13 changes: 0 additions & 13 deletions tools/helper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,6 @@ function Resolve-ProtoBufToolPath
}
}

function Get-WebFile {
param (
[string] $Url,
[string] $OutFile
)
$directoryName = [System.IO.Path]::GetDirectoryName($OutFile)
if (!(Test-Path $directoryName)) {
New-Item -Type Directory $directoryName
}
Remove-Item $OutFile -ErrorAction SilentlyContinue
Invoke-RestMethod $Url -OutFile $OutFile
}

function Write-Log
{
param(
Expand Down