We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7cce94 commit bac6880Copy full SHA for bac6880
build.ps1
@@ -37,7 +37,14 @@ function needsOpenSsl () {
37
}
38
39
function needsDotNet451TargetingPack () {
40
- # how could we check for this?
+ 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
0 commit comments