Skip to content

Commit

Permalink
Fix .NET nanoFramework build (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Oct 31, 2022
1 parent b480558 commit e8b5aae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Build/init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ if (!(Test-Path "$msbuildPath/nanoFramework")) {
$webClient.Headers.Add("User-Agent", "request")
$webClient.Headers.Add("Accept", "application/vnd.github.v3+json")

$releaseList = $webClient.DownloadString('https://api.github.com/repos/nanoframework/nf-Visual-Studio-extension/tags')
$releaseList = $webClient.DownloadString('https://api.github.com/repos/nanoframework/nf-Visual-Studio-extension/releases?per_page=100')

if($releaseList -match '"(?<VS2022_version>v2022\.\d+\.\d+\.\d+)')
if($releaseList -match '\"(?<VS2022_version>v2022\.\d+\.\d+\.\d+)\"')
{
$vs2022Tag = $Matches.VS2022_version
}

if($releaseList -match '"(?<VS2019_version>v2019\.\d+\.\d+\.\d+)')
if($releaseList -match '\"(?<VS2019_version>v2019\.\d+\.\d+\.\d+)\"')
{
$vs2019Tag = $Matches.VS2019_version
}
Expand Down

0 comments on commit e8b5aae

Please sign in to comment.