Skip to content

Commit 36e7902

Browse files
author
John Luo
authored
Merge pull request #18151 from dotnet/johluo/feb-branding
Update branding to 3.1.2
2 parents e6af4bf + eb1150b commit 36e7902

39 files changed

+1916
-743
lines changed

.azure/pipelines/ci.yml

Lines changed: 84 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ variables:
3838
value: ''
3939
- name: _SignType
4040
value: ''
41+
- name: _InternalRuntimeDownloadArgs
42+
value: ''
43+
- name: _InternalRuntimeDownloadCodeSignArgs
44+
value: ''
45+
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
46+
- group: DotNet-MSRC-Storage
47+
- name: _InternalRuntimeDownloadArgs
48+
value: -DotNetRuntimeSourceFeed https://dotnetclimsrc.blob.core.windows.net/dotnet -DotNetRuntimeSourceFeedKey $(dotnetclimsrc-read-sas-token-base64) /p:DotNetAssetRootAccessTokenSuffix='$(dotnetclimsrc-read-sas-token-base64)'
49+
# The code signing doesn't use the aspnet build scripts, so the msbuild parameers have
50+
# to be passed directly. This is awkward, since we pass the same info above, but we have
51+
# to have it in two different forms
52+
- name: _InternalRuntimeDownloadCodeSignArgs
53+
value: /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
4154
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
4255
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
4356
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
@@ -81,7 +94,15 @@ stages:
8194
jobDisplayName: Code check
8295
agentOs: Windows
8396
steps:
84-
- powershell: ./eng/scripts/CodeCheck.ps1 -ci
97+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
98+
- task: PowerShell@2
99+
displayName: Setup Private Feeds Credentials
100+
inputs:
101+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
102+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
103+
env:
104+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
105+
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
85106
displayName: Run eng/scripts/CodeCheck.ps1
86107
artifacts:
87108
- name: Code_Check_Logs
@@ -108,6 +129,14 @@ stages:
108129
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even
109130
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing.
110131
# The sign settings have been configured to
132+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
133+
- task: PowerShell@2
134+
displayName: Setup Private Feeds Credentials
135+
inputs:
136+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
137+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
138+
env:
139+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
111140

112141
- script: ./build.cmd
113142
-ci
@@ -117,6 +146,7 @@ stages:
117146
-buildNative
118147
/bl:artifacts/log/build.x64.binlog
119148
$(_BuildArgs)
149+
$(_InternalRuntimeDownloadArgs)
120150
displayName: Build x64
121151

122152
# Build the x86 shared framework
@@ -132,6 +162,7 @@ stages:
132162
/p:OnlyPackPlatformSpecificPackages=true
133163
/bl:artifacts/log/build.x86.binlog
134164
$(_BuildArgs)
165+
$(_InternalRuntimeDownloadArgs)
135166
displayName: Build x86
136167

137168
# This is in a separate build step with -forceCoreMsbuild to workaround MAX_PATH limitations - https://github.com/Microsoft/msbuild/issues/53
@@ -140,6 +171,7 @@ stages:
140171
-pack
141172
-noBuildDeps
142173
$(_BuildArgs)
174+
$(_InternalRuntimeDownloadArgs)
143175
displayName: Build SiteExtension
144176

145177
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If https://github.com/dotnet/arcade/issues/1957 is resolved,
@@ -165,6 +197,7 @@ stages:
165197
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml
166198
$(_BuildArgs)
167199
$(_PublishArgs)
200+
$(_InternalRuntimeDownloadArgs)
168201
/p:PublishInstallerBaseVersion=true
169202
displayName: Build Installers
170203

@@ -205,6 +238,7 @@ stages:
205238
/p:AssetManifestFileName=aspnetcore-win-arm.xml
206239
$(_BuildArgs)
207240
$(_PublishArgs)
241+
$(_InternalRuntimeDownloadArgs)
208242
installNodeJs: false
209243
installJdk: false
210244
artifacts:
@@ -231,6 +265,7 @@ stages:
231265
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
232266
$(_BuildArgs)
233267
$(_PublishArgs)
268+
$(_InternalRuntimeDownloadArgs)
234269
installNodeJs: false
235270
installJdk: false
236271
artifacts:
@@ -251,6 +286,14 @@ stages:
251286
jobDisplayName: "Build: Linux x64"
252287
agentOs: Linux
253288
steps:
289+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
290+
- task: Bash@3
291+
displayName: Setup Private Feeds Credentials
292+
inputs:
293+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
294+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
295+
env:
296+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
254297
- script: ./build.sh
255298
--ci
256299
--arch x64
@@ -261,6 +304,7 @@ stages:
261304
-p:OnlyPackPlatformSpecificPackages=true
262305
-bl:artifacts/log/build.linux-x64.binlog
263306
$(_BuildArgs)
307+
$(_InternalRuntimeDownloadArgs)
264308
displayName: Run build.sh
265309
- script: |
266310
git clean -xfd src/**/obj/
@@ -274,7 +318,8 @@ stages:
274318
-p:BuildRuntimeArchive=false \
275319
-p:LinuxInstallerType=deb \
276320
-bl:artifacts/log/build.deb.binlog \
277-
$(_BuildArgs)
321+
$(_BuildArgs) \
322+
$(_InternalRuntimeDownloadArgs)
278323
displayName: Build Debian installers
279324
- script: |
280325
git clean -xfd src/**/obj/
@@ -290,7 +335,8 @@ stages:
290335
-bl:artifacts/log/build.rpm.binlog \
291336
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
292337
$(_BuildArgs) \
293-
$(_PublishArgs)
338+
$(_PublishArgs) \
339+
$(_InternalRuntimeDownloadArgs)
294340
displayName: Build RPM installers
295341
installNodeJs: false
296342
installJdk: false
@@ -322,6 +368,7 @@ stages:
322368
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml
323369
$(_BuildArgs)
324370
$(_PublishArgs)
371+
$(_InternalRuntimeDownloadArgs)
325372
installNodeJs: false
326373
installJdk: false
327374
artifacts:
@@ -352,6 +399,7 @@ stages:
352399
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
353400
$(_BuildArgs)
354401
$(_PublishArgs)
402+
$(_InternalRuntimeDownloadArgs)
355403
installNodeJs: false
356404
installJdk: false
357405
artifacts:
@@ -385,6 +433,7 @@ stages:
385433
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
386434
$(_BuildArgs)
387435
$(_PublishArgs)
436+
$(_InternalRuntimeDownloadArgs)
388437
installNodeJs: false
389438
installJdk: false
390439
artifacts:
@@ -418,6 +467,7 @@ stages:
418467
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
419468
$(_BuildArgs)
420469
$(_PublishArgs)
470+
$(_InternalRuntimeDownloadArgs)
421471
installNodeJs: false
422472
installJdk: false
423473
artifacts:
@@ -439,7 +489,7 @@ stages:
439489
jobDisplayName: "Test: Windows Server 2016 x64"
440490
agentOs: Windows
441491
isTestingJob: true
442-
buildArgs: -all -pack -test -BuildNative "/p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false"
492+
buildArgs: -all -pack -test -BuildNative "/p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
443493
beforeBuild:
444494
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
445495
displayName: Setup IISExpress test certificates and schema
@@ -475,7 +525,15 @@ stages:
475525
agentOs: Windows
476526
isTestingJob: true
477527
steps:
478-
- script: ./build.cmd -ci -all -pack
528+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
529+
- task: PowerShell@2
530+
displayName: Setup Private Feeds Credentials
531+
inputs:
532+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
533+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
534+
env:
535+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
536+
- script: ./build.cmd -ci -all -pack $(_InternalRuntimeDownloadArgs)
479537
displayName: Build Repo
480538
- script: ./src/ProjectTemplates/build.cmd -ci -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.pack.binlog"
481539
displayName: Pack Templates
@@ -502,7 +560,7 @@ stages:
502560
jobDisplayName: "Test: macOS 10.13"
503561
agentOs: macOS
504562
isTestingJob: true
505-
buildArgs: --all --test "/p:RunTemplateTests=false"
563+
buildArgs: --all --test "/p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
506564
beforeBuild:
507565
- bash: "./eng/scripts/install-nginx-mac.sh"
508566
displayName: Installing Nginx
@@ -537,7 +595,7 @@ stages:
537595
jobDisplayName: "Test: Ubuntu 16.04 x64"
538596
agentOs: Linux
539597
isTestingJob: true
540-
buildArgs: --all --test "/p:RunTemplateTests=false"
598+
buildArgs: --all --test "/p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
541599
beforeBuild:
542600
- bash: "./eng/scripts/install-nginx-linux.sh"
543601
displayName: Installing Nginx
@@ -584,6 +642,25 @@ stages:
584642
chmod +x $HOME/bin/jq
585643
echo "##vso[task.prependpath]$HOME/bin"
586644
displayName: Install jq
645+
- task: UseDotNet@2
646+
displayName: 'Use .NET Core sdk'
647+
inputs:
648+
packageType: sdk
649+
# The SDK version selected here is intentionally supposed to use the latest release
650+
# For the purpose of building Linux distros, we can't depend on features of the SDK
651+
# which may not exist in pre-built versions of the SDK
652+
# Pinning to preview 8 since preview 9 has breaking changes
653+
version: 3.1.100
654+
installationPath: $(DotNetCoreSdkDir)
655+
includePreviewVersions: true
656+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
657+
- task: Bash@3
658+
displayName: Setup Private Feeds Credentials
659+
inputs:
660+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
661+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
662+
env:
663+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
587664
- script: ./eng/scripts/ci-source-build.sh --ci --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false
588665
displayName: Run ci-source-build.sh
589666
- task: PublishBuildArtifacts@1

.azure/pipelines/jobs/codesign-xplat.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
contents: '**/*.nupkg'
2929
targetFolder: $(Build.SourcesDirectory)/artifacts/packages/$(BuildConfiguration)/shipping/
3030
flattenFolders: true
31+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
32+
- task: PowerShell@2
33+
displayName: Setup Private Feeds Credentials
34+
inputs:
35+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
36+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
37+
env:
38+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
3139
- powershell: .\eng\common\build.ps1
3240
-ci
3341
-restore
@@ -39,6 +47,7 @@ jobs:
3947
/p:DotNetSignType=$(_SignType)
4048
$(_BuildArgs)
4149
$(_PublishArgs)
50+
$(_InternalRuntimeDownloadCodeSignArgs)
4251
displayName: Sign and publish packages
4352
artifacts:
4453
- name: CodeSign_Xplat_${{ parameters.inputName }}_Logs

.azure/pipelines/jobs/default-build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,24 @@ jobs:
161161
- ${{ if ne(parameters.steps, '')}}:
162162
- ${{ parameters.steps }}
163163
- ${{ if eq(parameters.steps, '')}}:
164+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
165+
- ${{ if eq(parameters.agentOs, 'Windows') }}:
166+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
167+
- task: PowerShell@2
168+
displayName: Setup Private Feeds Credentials
169+
inputs:
170+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
171+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
172+
env:
173+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
174+
- ${{ if ne(parameters.agentOs, 'Windows') }}:
175+
- task: Bash@3
176+
displayName: Setup Private Feeds Credentials
177+
inputs:
178+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
179+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
180+
env:
181+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
164182
- ${{ if eq(parameters.buildScript, '') }}:
165183
- ${{ if eq(parameters.agentOs, 'Windows') }}:
166184
- script: .\$(BuildDirectory)\build.cmd -ci /p:DotNetSignType=$(_SignType) -Configuration $(BuildConfiguration) $(BuildScriptArgs)

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
<RuntimeInstallerBaseName>aspnetcore-runtime</RuntimeInstallerBaseName>
8585
<TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName>
8686

87-
<!-- Produce targeting pack installers/packages once per major.minor except in extraordinary cases i.e. 3.0.1. -->
88-
<!-- We can remove the 3.0.1 line from any branch other than release/3.0 and from here after 3.0.1 is released. -->
87+
<!-- Produce targeting pack installers/packages once per major.minor except in extraordinary cases i.e. 3.1.2. -->
88+
<!-- We can remove the 3.1.2 line from any branch other than release/3.1 and from here after 3.1.2 is released. -->
8989
<IsTargetingPackBuilding Condition=" '$(DotNetBuildFromSource)' == 'true' ">false</IsTargetingPackBuilding>
9090
<IsTargetingPackBuilding
9191
Condition=" '$(IsTargetingPackBuilding)' == '' AND '$(VersionPrefix)' == '3.0.1' ">true</IsTargetingPackBuilding>

build.ps1

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ MSBuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]
7777
.PARAMETER MSBuildArguments
7878
Additional MSBuild arguments to be passed through.
7979
80+
.PARAMETER DotNetRuntimeSourceFeed
81+
Additional feed that can be used when downloading .NET runtimes
82+
83+
.PARAMETER DotNetRuntimeSourceFeedKey
84+
Key for feed that can be used when downloading .NET runtimes
85+
8086
.EXAMPLE
8187
Building both native and managed projects.
8288
@@ -151,6 +157,11 @@ param(
151157

152158
# Other lifecycle targets
153159
[switch]$Help, # Show help
160+
161+
# Optional arguments that enable downloading an internal
162+
# runtime or runtime from a non-default location
163+
[string]$DotNetRuntimeSourceFeed,
164+
[string]$DotNetRuntimeSourceFeedKey,
154165

155166
# Capture the rest
156167
[Parameter(ValueFromRemainingArguments = $true)]
@@ -251,6 +262,16 @@ if (-not $Configuration) {
251262
}
252263
$MSBuildArguments += "/p:Configuration=$Configuration"
253264

265+
[string[]]$ToolsetBuildArguments = @()
266+
if ($DotNetRuntimeSourceFeed -or $DotNetRuntimeSourceFeedKey) {
267+
$runtimeFeedArg = "/p:DotNetRuntimeSourceFeed=$DotNetRuntimeSourceFeed"
268+
$runtimeFeedKeyArg = "/p:DotNetRuntimeSourceFeedKey=$DotNetRuntimeSourceFeedKey"
269+
$MSBuildArguments += $runtimeFeedArg
270+
$MSBuildArguments += $runtimeFeedKeyArg
271+
$ToolsetBuildArguments += $runtimeFeedArg
272+
$ToolsetBuildArguments += $runtimeFeedKeyArg
273+
}
274+
254275
$foundJdk = $false
255276
$javac = Get-Command javac -ErrorAction Ignore -CommandType Application
256277
$localJdkPath = "$PSScriptRoot\.tools\jdk\win-x64\"
@@ -375,7 +396,8 @@ try {
375396
/p:Configuration=Release `
376397
/p:Restore=$RunRestore `
377398
/p:Build=true `
378-
/clp:NoSummary
399+
/clp:NoSummary `
400+
@ToolsetBuildArguments
379401
}
380402

381403
MSBuild $toolsetBuildProj `

0 commit comments

Comments
 (0)