@@ -9,13 +9,13 @@ function Get-Nodes
99{
1010 param (
1111 [parameter (ValueFromPipeline = $true )]
12- [xml ] $xml ,
12+ [xml ] $xml ,
1313 [parameter (Mandatory = $true )]
1414 [string ] $nodeName )
1515
1616 # Try the old style csproj. Also format required for .targets and .props files
1717 $n = Select-Xml - Xml $xml.Project - Namespace @ {d = $ns } - XPath " //d:$nodeName "
18-
18+
1919 # Try the SDK-style files
2020 if (! $n ) {
2121 $r = Select-Xml - Xml $xml.Project - XPath " //$nodeName "
@@ -28,7 +28,7 @@ function Get-NodeValue
2828{
2929 param (
3030 [parameter (ValueFromPipeline = $true )]
31- [xml ] $xml ,
31+ [xml ] $xml ,
3232 [string ] $nodeName )
3333
3434 $node = get-nodes $xml $nodeName
@@ -45,7 +45,7 @@ function Get-NodeValue
4545function Get-SdkVersion
4646{
4747 param (
48- [Parameter (ValueFromPipeline = $true )] $file )
48+ [Parameter (ValueFromPipeline = $true )] $file )
4949
5050 [xml ] $xml = Get-Content $file
5151
@@ -150,15 +150,15 @@ foreach($version in $versions) {
150150 if ($version -match " 10\.0\.\d{5}\.0" ) {
151151 $installRequired = Test-InstallWindowsSDK $version
152152 Write-Host " Windows SDK '$version ' install required: $installRequired "
153- if ($installRequired ) {
153+ if ($installRequired ) {
154154 # Automatically invoke Install-WindowsSDKIso.ps1 ?
155155 $anyInstallRequired = $true
156156 }
157157 }
158158}
159159
160160Write-Host
161- if ($anyInstallRequired ) {
161+ if ($anyInstallRequired ) {
162162 throw " At least one Windows SDK is missing from this machine"
163163} else {
164164 Write-Host " All referenced Windows SDKs are installed!"
0 commit comments