|
2 | 2 |
|
3 | 3 | # compute authorization header in format "AUTHORIZATION: basic 'encoded token'" |
4 | 4 | # 'encoded token' is the Base64 of the string "nfbot:personal-token" |
5 | | -$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)"))))" |
| 5 | +$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$env:MY_GITHUB_TOKEN"))))" |
6 | 6 |
|
7 | 7 | # because it can take sometime for the package to become available on the NuGet providers |
8 | 8 | # need to hang here for 2 minutes (2 * 60) |
@@ -38,24 +38,28 @@ Set-Location source | Out-Null |
38 | 38 | #################### |
39 | 39 | # VS 2017 |
40 | 40 |
|
| 41 | +Write-Host "Restoring packages in VS2017 solution..." |
| 42 | + |
41 | 43 | # restore NuGet packages, need to do this before anything else |
42 | | -nuget restore nanoFramework.Tools.VisualStudio.sln -Source https://pkgs.dev.azure.com/nanoframework/feed/_packaging/sandbox/nuget/v3/index.json -Source https://api.nuget.org/v3/index.json |
| 44 | +nuget restore nanoFramework.Tools.VisualStudio.sln -ConfigFile NuGet.Config |
43 | 45 |
|
44 | | -Write-Debug "Updating packages in VS2017 solution" |
| 46 | +Write-Host "Updating nanoFramework.Tools.MetadataProcessor.Core package in VS2017 solution..." |
45 | 47 |
|
46 | | -nuget update -Id nanoFramework.Tools.MetadataProcessor.Core Tools.BuildTasks\Tools.BuildTasks.csproj -ConfigFile NuGet.Config |
47 | | -nuget update -Id nanoFramework.Tools.MetadataProcessor.Core VisualStudio.Extension\VisualStudio.Extension.csproj -ConfigFile NuGet.Config |
| 48 | +nuget update -Id nanoFramework.Tools.MetadataProcessor.Core Tools.BuildTasks\Tools.BuildTasks.csproj -ConfigFile NuGet.Config -PreRelease |
| 49 | +nuget update -Id nanoFramework.Tools.MetadataProcessor.Core VisualStudio.Extension\VisualStudio.Extension.csproj -ConfigFile NuGet.Config -PreRelease |
48 | 50 |
|
49 | 51 | #################### |
50 | 52 | # VS 2019 |
51 | 53 |
|
| 54 | +Write-Host "Restoring packages in VS2019 solution..." |
| 55 | + |
52 | 56 | # restore NuGet packages, need to do this before anything else |
53 | | -nuget restore nanoFramework.Tools.VisualStudio-2019.sln -Source https://pkgs.dev.azure.com/nanoframework/feed/_packaging/sandbox/nuget/v3/index.json -Source https://api.nuget.org/v3/index.json |
| 57 | +nuget restore nanoFramework.Tools.VisualStudio-2019.sln -ConfigFile NuGet.Config |
54 | 58 |
|
55 | | -Write-Debug "Updating packages in VS2019 solution" |
| 59 | +Write-Host "Updating nanoFramework.Tools.MetadataProcessor.Core package in VS2019 solution..." |
56 | 60 |
|
57 | | -nuget update -Id nanoFramework.Tools.MetadataProcessor.Core Tools.BuildTasks-2019\Tools.BuildTasks.csproj -ConfigFile NuGet.Config |
58 | | -nuget update -Id nanoFramework.Tools.MetadataProcessor.Core VisualStudio.Extension-2019\VisualStudio.Extension.csproj -ConfigFile NuGet.Config |
| 61 | +nuget update -Id nanoFramework.Tools.MetadataProcessor.Core Tools.BuildTasks-2019\Tools.BuildTasks.csproj -ConfigFile NuGet.Config -PreRelease |
| 62 | +nuget update -Id nanoFramework.Tools.MetadataProcessor.Core VisualStudio.Extension-2019\VisualStudio.Extension.csproj -ConfigFile NuGet.Config -PreRelease |
59 | 63 |
|
60 | 64 | ##################### |
61 | 65 |
|
|
0 commit comments