Skip to content

Commit b008134

Browse files
authored
Fix install of nanoFramework build tools (#1002)
1 parent 6f865f3 commit b008134

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Build/init.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,17 @@ if (!(Test-Path "$msbuildPath/nanoFramework")) {
2929
$webClient.DownloadFile("http://vsixgallery.com/feed/author/nanoframework", $vsixFeedXml)
3030
[xml]$feedDetails = Get-Content $vsixFeedXml
3131

32-
$extensionUrl = $feedDetails.feed.entry[1].content.src
32+
foreach ($entry in $feedDetails.feed.entry)
33+
{
34+
if($entry.id -eq '455f2be5-bb07-451e-b351-a9faf3018dc9')
35+
{
36+
$extensionUrl = $entry.content.src
37+
$extensionVersion = $entry.Vsix.Version
38+
break
39+
}
40+
}
41+
3342
$vsixPath = Join-Path -Path $tempDir -ChildPath "nf-extension.zip"
34-
$extensionVersion = $feedDetails.feed.entry[0].Vsix.Version
3543
$webClient.DownloadFile($extensionUrl,$vsixPath)
3644
Expand-Archive -LiteralPath $vsixPath -DestinationPath $tempDir\nf-extension\ | Write-Host
3745

0 commit comments

Comments
 (0)