2 # Copyright (c) .NET Foundation and contributors. All rights reserved.
3 # Licensed under the MIT license. See LICENSE file in the project root for full license information.
6 # This script updates the dotnet/versions repository based on a set of packages. It directly
7 # commits the changes using GitHub APIs.
10 [Parameter(Mandatory=$true)][string]$gitHubUser,
11 [Parameter(Mandatory=$true)][string]$gitHubEmail,
12 [Parameter(Mandatory=$true)][string]$gitHubAuthToken,
13 [Parameter(Mandatory=$true)][string]$versionsRepoOwner,
14 [Parameter(Mandatory=$true)][string]$versionsRepo,
15 [Parameter(Mandatory=$true)][string]$versionsRepoPath,
16 # A pattern matching all packages in the set that the versions repository should be set to.
17 [Parameter(Mandatory=$true)][string]$nupkgPath)
19 & "$PSScriptRoot\init-tools.cmd"
20 & "$PSScriptRoot\dotnet.cmd" msbuild /nologo /verbosity:minimal /clp:Summary /nodeReuse:false `
21 /l:BinClashLogger,Tools/Microsoft.DotNet.Build.Tasks.dll`;LogFile=binclash.log `
22 /p:RestoreDefaultOptimizationDataPackage=false `
23 /p:PortableBuild=true `
24 /p:UsePartialNGENOptimization=false `
26 tests\build.proj /t:UpdatePublishedVersions `
27 /p:GitHubUser="$gitHubUser" `
28 /p:GitHubEmail="$gitHubEmail" `
29 /p:GitHubAuthToken="$gitHubAuthToken" `
30 /p:VersionsRepoOwner="$versionsRepoOwner" `
31 /p:VersionsRepo="$versionsRepo" `
32 /p:VersionsRepoPath="$versionsRepoPath" `
33 /p:ShippedNuGetPackageGlobPath="$nupkgPath"