File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,17 @@ if (!(Test-Path "$msbuildPath/nanoFramework")) {
29
29
$webClient.DownloadFile (" http://vsixgallery.com/feed/author/nanoframework" , $vsixFeedXml )
30
30
[xml ]$feedDetails = Get-Content $vsixFeedXml
31
31
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
+
33
42
$vsixPath = Join-Path - Path $tempDir - ChildPath " nf-extension.zip"
34
- $extensionVersion = $feedDetails.feed.entry [0 ].Vsix.Version
35
43
$webClient.DownloadFile ($extensionUrl , $vsixPath )
36
44
Expand-Archive - LiteralPath $vsixPath - DestinationPath $tempDir \nf- extension\ | Write-Host
37
45
You can’t perform that action at this time.
0 commit comments