Skip to content

Commit 756efc2

Browse files
remove .NET targeting pack
1 parent bac6880 commit 756efc2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

build.ps1

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ param(
1111

1212
$NeededTools = @{
1313
OpenSsl = "openssl for macOS"
14-
DotNet451TargetingPack = ".NET 4.5.1 Targeting Pack"
1514
PowerShellGet = "PowerShellGet latest"
1615
InvokeBuild = "InvokeBuild latest"
1716
}
@@ -36,18 +35,6 @@ function needsOpenSsl () {
3635
return $false
3736
}
3837

39-
function needsDotNet451TargetingPack () {
40-
if($BootstrapBuildEnv -and ($OS -eq "Windows")) {
41-
$hasNet451TargetingPack = Get-CimInstance Win32_Product | Where-Object Name -match '\.NET Framework 4\.5\.1 Multi-Targeting Pack'
42-
if(-not $hasNet451TargetingPack) {
43-
return $true
44-
}
45-
} elseif($OS -eq "Windows") {
46-
Write-Host "[Bootstrap] Did not check if the .NET 4.5.1 Targeting Pack is present. To check, run 'build.ps1 -BootstrapBuildEnv'"
47-
}
48-
return $false
49-
}
50-
5138
function needsPowerShellGet () {
5239
if (Get-Module -ListAvailable -Name PowerShellGet) {
5340
return $false
@@ -68,9 +55,6 @@ function getMissingTools () {
6855
if (needsOpenSsl) {
6956
$missingTools += $NeededTools.OpenSsl
7057
}
71-
if (needsDotNet451TargetingPack) {
72-
$missingTools += $NeededTools.DotNet451TargetingPack
73-
}
7458
if (needsPowerShellGet) {
7559
$missingTools += $NeededTools.PowerShellGet
7660
}

0 commit comments

Comments
 (0)