Skip to content

Commit 485b5cf

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20190212.3 (#351)
This change updates the following dependencies - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19112.3
1 parent 479b0c6 commit 485b5cf

File tree

7 files changed

+38
-46
lines changed

7 files changed

+38
-46
lines changed

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
</Dependency>
4848
</ProductDependencies>
4949
<ToolsetDependencies>
50-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19108.1">
50+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19112.3">
5151
<Uri>https://github.com/dotnet/arcade</Uri>
52-
<Sha>044309163eadaad0068156f0327af458d562f171</Sha>
52+
<Sha>9a5da1c8a3232c6304955c7a6ffe6109a1b13d9f</Sha>
5353
</Dependency>
5454
</ToolsetDependencies>
5555
</Dependencies>

eng/common/internal/Directory.Build.targets

Lines changed: 0 additions & 3 deletions
This file was deleted.

eng/common/internal/Tools.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<Project Sdk="Microsoft.NET.Sdk">
44
<PropertyGroup>
55
<TargetFramework>net472</TargetFramework>
6+
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
67
</PropertyGroup>
78
<ItemGroup>
89
<!-- Clear references, the SDK may add some depending on UsuingToolXxx settings, but we only want to restore the following -->
@@ -16,4 +17,7 @@
1617
https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json;
1718
</RestoreSources>
1819
</PropertyGroup>
20+
21+
<!-- Repository extensibility point -->
22+
<Import Project="$(RepositoryEngineeringDir)InternalTools.props" Condition="Exists('$(RepositoryEngineeringDir)InternalTools.props')" />
1923
</Project>

eng/common/templates/job/job.yml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,11 @@ parameters:
4141
enablePublishTestResults: false
4242

4343
# Optional: enable sending telemetry
44-
# if 'true', these "variables" must be specified in the variables object or as part of the queue matrix
45-
# _HelixBuildConfig - differentiate between Debug, Release, other
46-
# _HelixType - Example: build/product/
47-
# _HelixSource - Example: official/dotnet/arcade/$(Build.SourceBranch)
4844
enableTelemetry: false
4945

50-
# Optional: If specified, then automatically derive "_HelixSource" variable for telemetry
46+
# Optional: define the helix repo for telemeetry (example: 'dotnet/arcade')
5147
helixRepo: ''
5248

53-
# Optional: Define the type for helix telemetry (must end in '/')
54-
helixType: build/product/
55-
5649
# Required: name of the job
5750
name: ''
5851

@@ -115,29 +108,20 @@ jobs:
115108
- name: ${{ pair.key }}
116109
value: ${{ pair.value }}
117110

118-
# Add additional variables
119-
- ${{ if and(ne(parameters.helixRepo, ''), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}:
120-
- name: _HelixSource
121-
value: official/${{ parameters.helixRepo }}/$(Build.SourceBranch)
122-
- ${{ if and(ne(parameters.helixRepo, ''), or(ne(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest'))) }}:
123-
- name: _HelixSource
124-
value: pr/${{ parameters.helixRepo }}/$(Build.SourceBranch)
125-
- name: _HelixType
126-
value: ${{ parameters.helixType }}
127-
- name: _HelixBuildConfig
128-
value: $(_BuildConfig)
129-
130111
${{ if ne(parameters.workspace, '') }}:
131112
workspace: ${{ parameters.workspace }}
132113

133114
steps:
134115
- ${{ if eq(parameters.enableTelemetry, 'true') }}:
135-
- template: /eng/common/templates/steps/telemetry-start.yml
136-
parameters:
137-
buildConfig: $(_HelixBuildConfig)
138-
helixSource: $(_HelixSource)
139-
helixType: $(_HelixType)
116+
# Telemetry tasks are built from https://github.com/dotnet/arcade-extensions
117+
- task: sendStartTelemetry@0
118+
displayName: 'Send Helix Start Telemetry'
119+
inputs:
120+
helixRepo: ${{ parameters.helixRepo }}
121+
buildConfig: $(_BuildConfig)
140122
runAsPublic: ${{ parameters.runAsPublic }}
123+
continueOnError: ${{ parameters.continueOnError }}
124+
condition: always()
141125

142126
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
143127
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
@@ -165,11 +149,15 @@ jobs:
165149
TeamName: $(_TeamName)
166150

167151
- ${{ if eq(parameters.enableTelemetry, 'true') }}:
168-
- template: /eng/common/templates/steps/telemetry-end.yml
152+
# Telemetry tasks are built from https://github.com/dotnet/arcade-extensions
153+
- task: sendEndTelemetry@0
154+
displayName: 'Send Helix End Telemetry'
155+
continueOnError: ${{ parameters.continueOnError }}
156+
condition: always()
169157

170158
- ${{ if eq(parameters.enablePublishBuildArtifacts, 'true') }}:
171159
- task: PublishBuildArtifacts@1
172-
displayName: Publish Logs to VSTS
160+
displayName: Publish Logs
173161
inputs:
174162
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
175163
PublishLocation: Container

eng/common/templates/jobs/jobs.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,15 @@ parameters:
1818
enablePublishTestResults: false
1919

2020
# Optional: enable sending telemetry
21-
# if 'true', these "variables" must be specified in the variables object or as part of the queue matrix
22-
# _HelixBuildConfig - differentiate between Debug, Release, other
23-
# _HelixType - Example: build/product/
24-
# _HelixSource - Example: official/dotnet/arcade/$(Build.SourceBranch)
21+
# if enabled then the 'helixRepo' parameter should also be specified
2522
enableTelemetry: false
2623

2724
# Required: A collection of jobs to run - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job
2825
jobs: []
2926

30-
# Optional: If specified, then automatically derive "_HelixSource" variable for telemetry
27+
# Optional: define the helix repo for telemetry (example: 'dotnet/arcade')
3128
helixRepo: ''
3229

33-
# Optional: Define the type for helix telemetry (must end in '/')
34-
helixType: build/product/
35-
3630
# Optional: Override automatically derived dependsOn value for "publish build assets" job
3731
publishBuildAssetsDependsOn: ''
3832

eng/common/tools.ps1

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
211211
$vsMajorVersion = $vsInfo.installationVersion.Split('.')[0]
212212

213213
InitializeVisualStudioEnvironmentVariables $vsInstallDir $vsMajorVersion
214-
} elseif ($install) {
214+
} else {
215215

216216
if (Get-Member -InputObject $GlobalJson.tools -Name "xcopy-msbuild") {
217217
$xcopyMSBuildVersion = $GlobalJson.tools.'xcopy-msbuild'
@@ -221,9 +221,10 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
221221
$xcopyMSBuildVersion = "$vsMajorVersion.$($vsMinVersion.Minor).0-alpha"
222222
}
223223

224-
$vsInstallDir = InstallXCopyMSBuild $xcopyMSBuildVersion
225-
} else {
226-
throw "Unable to find Visual Studio that has required version and components installed"
224+
$vsInstallDir = InitializeXCopyMSBuild $xcopyMSBuildVersion $install
225+
if ($vsInstallDir -eq $null) {
226+
throw "Unable to find Visual Studio that has required version and components installed"
227+
}
227228
}
228229

229230
$msbuildVersionDir = if ([int]$vsMajorVersion -lt 16) { "$vsMajorVersion.0" } else { "Current" }
@@ -241,12 +242,20 @@ function InitializeVisualStudioEnvironmentVariables([string] $vsInstallDir, [str
241242
}
242243
}
243244

244-
function InstallXCopyMSBuild([string] $packageVersion) {
245+
function InstallXCopyMSBuild([string]$packageVersion) {
246+
return InitializeXCopyMSBuild $packageVersion -install $true
247+
}
248+
249+
function InitializeXCopyMSBuild([string]$packageVersion, [bool]$install) {
245250
$packageName = "RoslynTools.MSBuild"
246251
$packageDir = Join-Path $ToolsDir "msbuild\$packageVersion"
247252
$packagePath = Join-Path $packageDir "$packageName.$packageVersion.nupkg"
248253

249254
if (!(Test-Path $packageDir)) {
255+
if (!$install) {
256+
return $null
257+
}
258+
250259
Create-Directory $packageDir
251260
Write-Host "Downloading $packageName $packageVersion"
252261
Invoke-WebRequest "https://dotnet.myget.org/F/roslyn-tools/api/v2/package/$packageName/$packageVersion/" -OutFile $packagePath

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"version": "3.0.100-preview-010024"
1010
},
1111
"msbuild-sdks": {
12-
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19108.1"
12+
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19112.3"
1313
}
1414
}

0 commit comments

Comments
 (0)