Update dependencies from https://github.com/dotnet/arcade build 20190204.18 (#387)

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19104.18
This commit is contained in:
dotnet-maestro[bot] 2019-02-05 13:42:55 +00:00 committed by GitHub
parent 3014966c47
commit 24d26056ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 85 additions and 46 deletions

View file

@ -28,9 +28,9 @@
</Dependency> </Dependency>
</ProductDependencies> </ProductDependencies>
<ToolsetDependencies> <ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19103.1"> <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19104.18">
<Uri>https://github.com/dotnet/arcade</Uri> <Uri>https://github.com/dotnet/arcade</Uri>
<Sha>58be4cadf2cabd4b3b3186576557835a1987a711</Sha> <Sha>8888f0d15c7cc51018ffaf0a9a408f7ba8e82301</Sha>
</Dependency> </Dependency>
</ToolsetDependencies> </ToolsetDependencies>
</Dependencies> </Dependencies>

View file

@ -1,3 +0,0 @@
@echo off
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0sdk-task.ps1""" -msbuildEngine dotnet -restore -projects PublishBuildAssets.proj -ci %*"
exit /b %ErrorLevel%

View file

@ -32,6 +32,9 @@
<PushArtifactsInManifestToFeed <PushArtifactsInManifestToFeed
ExpectedFeedUrl="$(TargetStaticFeed)" ExpectedFeedUrl="$(TargetStaticFeed)"
AccountKey="$(AccountKeyToStaticFeed)" AccountKey="$(AccountKeyToStaticFeed)"
BARBuildId="$(BARBuildId)"
MaestroApiEndpoint="$(MaestroApiEndpoint)"
BuildAssetRegistryToken="$(BuildAssetRegistryToken)"
Overwrite="$(OverrideAssetsWithSameName)" Overwrite="$(OverrideAssetsWithSameName)"
PassIfExistingItemIdentical="$(PassIfExistingItemIdentical)" PassIfExistingItemIdentical="$(PassIfExistingItemIdentical)"
MaxClients="$(MaxParallelUploads)" MaxClients="$(MaxParallelUploads)"

View file

@ -0,0 +1,4 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
</Project>

View file

@ -0,0 +1,3 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>
</Project>

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<ItemGroup>
<!-- Clear references, the SDK may add some depending on UsuingToolXxx settings, but we only want to restore the following -->
<PackageReference Remove="@(PackageReference)"/>
<PackageReference Include="Microsoft.DotNet.IBCMerge" Version="$(MicrosoftDotNetIBCMergeVersion)" Condition="'$(UsingToolIbcOptimization)' == 'true'" />
<PackageReference Include="Drop.App" Version="$(DropAppVersion)" ExcludeAssets="all" Condition="'$(UsingToolVisualStudioIbcTraining)' == 'true'"/>
</ItemGroup>
<PropertyGroup>
<RestoreSources>
https://devdiv.pkgs.visualstudio.com/_packaging/8f470c7e-ac49-4afe-a6ee-cf784e438b93/nuget/v3/index.json;
https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json;
</RestoreSources>
</PropertyGroup>
</Project>

View file

@ -1,48 +1,47 @@
[CmdletBinding(PositionalBinding=$false)] [CmdletBinding(PositionalBinding=$false)]
Param( Param(
[string] $projects = "", [string] $configuration = "Debug",
[string][Alias('v')]$verbosity = "minimal", [string] $task,
[string] $verbosity = "minimal",
[string] $msbuildEngine = $null, [string] $msbuildEngine = $null,
[bool] $warnAsError = $true, [switch] $restore,
[switch][Alias('bl')]$binaryLog,
[switch][Alias('r')]$restore,
[switch] $ci,
[switch] $prepareMachine, [switch] $prepareMachine,
[switch] $help, [switch] $help,
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties [Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
) )
$ci = $true
$binaryLog = $true
$warnAsError = $true
. $PSScriptRoot\tools.ps1 . $PSScriptRoot\tools.ps1
function Print-Usage() { function Print-Usage() {
Write-Host "Common settings:" Write-Host "Common settings:"
Write-Host " -v[erbosity] <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]" Write-Host " -task <value> Name of Arcade task (name of a project in SdkTasks directory of the Arcade SDK package)"
Write-Host " -[bl|binaryLog] Output binary log (short: -bl)" Write-Host " -restore Restore dependencies"
Write-Host " -help Print help and exit" Write-Host " -verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]"
Write-Host "" Write-Host " -help Print help and exit"
Write-Host ""
Write-Host "Advanced settings:" Write-Host "Advanced settings:"
Write-Host " -restore Restore dependencies (short: -r)" Write-Host " -prepareMachine Prepare machine for CI run"
Write-Host " -projects <value> Semi-colon delimited list of sln/proj's from the Arcade sdk to build. Globbing is supported (*.sln)" Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
Write-Host " -ci Set when running on CI server" Write-Host ""
Write-Host " -prepareMachine Prepare machine for CI run" Write-Host "Command line arguments not listed above are passed thru to msbuild."
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
Write-Host ""
Write-Host "Command line arguments not listed above are passed thru to msbuild."
Write-Host "The above arguments can be shortened as much as to be unambiguous (e.g. -co for configuration, -t for test, etc.)."
} }
function Build { function Build([string]$target) {
$toolsetBuildProj = InitializeToolset $logSuffix = if ($target -eq "Execute") { "" } else { ".$target" }
$log = Join-Path $LogDir "$task$logSuffix.binlog"
$outputPath = Join-Path $ToolsetDir "$task\\"
$toolsetBuildProj = Join-Path (Split-Path $toolsetBuildProj -Parent) "SdkTasks\SdkTask.proj" MSBuild $taskProject `
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "SdkTask.binlog") } else { "" } /bl:$log `
MSBuild $toolsetBuildProj ` /t:$target `
$bl ` /p:Configuration=$configuration `
/p:Projects=$projects `
/p:Restore=$restore `
/p:RepoRoot=$RepoRoot ` /p:RepoRoot=$RepoRoot `
/p:ContinuousIntegrationBuild=$ci ` /p:BaseIntermediateOutputPath=$outputPath `
@properties @properties
} }
@ -52,17 +51,23 @@ try {
exit 0 exit 0
} }
if ($projects -eq "") { if ($task -eq "") {
Write-Error "Missing required parameter '-projects <value>'" Write-Host "Missing required parameter '-task <value>'" -ForegroundColor Red
Print-Usage Print-Usage
ExitWithExitCode 1 ExitWithExitCode 1
} }
if ($ci) { $taskProject = GetSdkTaskProject $task
$binaryLog = $true if (!(Test-Path $taskProject)) {
Write-Host "Unknown task: $task" -ForegroundColor Red
ExitWithExitCode 1
} }
Build if ($restore) {
Build "Restore"
}
Build "Execute"
} }
catch { catch {
Write-Host $_ Write-Host $_

View file

@ -44,12 +44,15 @@ jobs:
downloadPath: '$(Build.StagingDirectory)/Download' downloadPath: '$(Build.StagingDirectory)/Download'
condition: ${{ parameters.condition }} condition: ${{ parameters.condition }}
continueOnError: ${{ parameters.continueOnError }} continueOnError: ${{ parameters.continueOnError }}
- script: eng\common\publishbuildassets.cmd - task: PowerShell@2
/p:ManifestsPath='$(Build.StagingDirectory)/Download/AssetManifests'
/p:BuildAssetRegistryToken=$(MaestroAccessToken)
/p:MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com
/p:Configuration=$(_BuildConfig)
displayName: Publish Build Assets displayName: Publish Build Assets
inputs:
filePath: eng\common\sdk-task.ps1
arguments: -task PublishBuildAssets -restore -msbuildEngine dotnet
/p:ManifestsPath='$(Build.StagingDirectory)/Download/AssetManifests'
/p:BuildAssetRegistryToken=$(MaestroAccessToken)
/p:MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com
/p:Configuration=$(_BuildConfig)
condition: ${{ parameters.condition }} condition: ${{ parameters.condition }}
continueOnError: ${{ parameters.continueOnError }} continueOnError: ${{ parameters.continueOnError }}
- ${{ if eq(parameters.enablePublishBuildArtifacts, 'true') }}: - ${{ if eq(parameters.enablePublishBuildArtifacts, 'true') }}:

View file

@ -376,6 +376,11 @@ function GetNuGetPackageCachePath() {
return $env:NUGET_PACKAGES return $env:NUGET_PACKAGES
} }
# Returns a full path to an Arcade SDK task project file.
function GetSdkTaskProject([string]$taskName) {
return Join-Path (Split-Path (InitializeToolset) -Parent) "SdkTasks\$taskName.proj"
}
function InitializeToolset() { function InitializeToolset() {
if (Test-Path variable:global:_ToolsetBuildProj) { if (Test-Path variable:global:_ToolsetBuildProj) {
return $global:_ToolsetBuildProj return $global:_ToolsetBuildProj
@ -394,7 +399,7 @@ function InitializeToolset() {
} }
if (-not $restore) { if (-not $restore) {
Write-Host "Toolset version $toolsetVersion has not been restored." Write-Host "Toolset version $toolsetVersion has not been restored." -ForegroundColor Red
ExitWithExitCode 1 ExitWithExitCode 1
} }

View file

@ -3,6 +3,6 @@
"dotnet": "3.0.100-preview-009812" "dotnet": "3.0.100-preview-009812"
}, },
"msbuild-sdks": { "msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19103.1" "Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19104.18"
} }
} }