Skip to content

Commit f9d58da

Browse files
authored
Merge pull request #18217 from dotnet/johluo/3.0-feb20
- update branding to 3.0.3
2 parents 1ff3e7b + 53b510f commit f9d58da

39 files changed

+1891
-750
lines changed

.azure/pipelines/ci.yml

Lines changed: 73 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
@@ -78,7 +91,15 @@ stages:
7891
jobDisplayName: Code check
7992
agentOs: Windows
8093
steps:
81-
- powershell: ./eng/scripts/CodeCheck.ps1 -ci
94+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
95+
- task: PowerShell@2
96+
displayName: Setup Private Feeds Credentials
97+
inputs:
98+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
99+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
100+
env:
101+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
102+
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
82103
displayName: Run eng/scripts/CodeCheck.ps1
83104
artifacts:
84105
- name: Code_Check_Logs
@@ -104,6 +125,14 @@ stages:
104125
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even
105126
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing.
106127
# The sign settings have been configured to
128+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
129+
- task: PowerShell@2
130+
displayName: Setup Private Feeds Credentials
131+
inputs:
132+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
133+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
134+
env:
135+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
107136

108137
- script: ./build.cmd
109138
-ci
@@ -113,6 +142,7 @@ stages:
113142
-buildNative
114143
/bl:artifacts/log/build.x64.binlog
115144
$(_BuildArgs)
145+
$(_InternalRuntimeDownloadArgs)
116146
displayName: Build x64
117147

118148
# Build the x86 shared framework
@@ -128,6 +158,7 @@ stages:
128158
/p:OnlyPackPlatformSpecificPackages=true
129159
/bl:artifacts/log/build.x86.binlog
130160
$(_BuildArgs)
161+
$(_InternalRuntimeDownloadArgs)
131162
displayName: Build x86
132163

133164
# This is in a separate build step with -forceCoreMsbuild to workaround MAX_PATH limitations - https://github.com/Microsoft/msbuild/issues/53
@@ -136,6 +167,7 @@ stages:
136167
-pack
137168
-noBuildDeps
138169
$(_BuildArgs)
170+
$(_InternalRuntimeDownloadArgs)
139171
displayName: Build SiteExtension
140172

141173
# 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,
@@ -161,6 +193,7 @@ stages:
161193
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml
162194
$(_BuildArgs)
163195
$(_PublishArgs)
196+
$(_InternalRuntimeDownloadArgs)
164197
/p:PublishInstallerBaseVersion=true
165198
displayName: Build Installers
166199

@@ -190,6 +223,7 @@ stages:
190223
/p:AssetManifestFileName=aspnetcore-win-arm.xml
191224
$(_BuildArgs)
192225
$(_PublishArgs)
226+
$(_InternalRuntimeDownloadArgs)
193227
installNodeJs: false
194228
installJdk: false
195229
artifacts:
@@ -215,6 +249,7 @@ stages:
215249
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
216250
$(_BuildArgs)
217251
$(_PublishArgs)
252+
$(_InternalRuntimeDownloadArgs)
218253
installNodeJs: false
219254
installJdk: false
220255
artifacts:
@@ -234,6 +269,14 @@ stages:
234269
jobDisplayName: "Build: Linux x64"
235270
agentOs: Linux
236271
steps:
272+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
273+
- task: Bash@3
274+
displayName: Setup Private Feeds Credentials
275+
inputs:
276+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
277+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
278+
env:
279+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
237280
- script: ./build.sh
238281
--ci
239282
--arch x64
@@ -244,6 +287,7 @@ stages:
244287
-p:OnlyPackPlatformSpecificPackages=true
245288
-bl:artifacts/log/build.linux-x64.binlog
246289
$(_BuildArgs)
290+
$(_InternalRuntimeDownloadArgs)
247291
displayName: Run build.sh
248292
- script: |
249293
git clean -xfd src/**/obj/
@@ -257,7 +301,8 @@ stages:
257301
-p:BuildRuntimeArchive=false \
258302
-p:LinuxInstallerType=deb \
259303
-bl:artifacts/log/build.deb.binlog \
260-
$(_BuildArgs)
304+
$(_BuildArgs) \
305+
$(_InternalRuntimeDownloadArgs)
261306
displayName: Build Debian installers
262307
- script: |
263308
git clean -xfd src/**/obj/
@@ -273,7 +318,8 @@ stages:
273318
-bl:artifacts/log/build.rpm.binlog \
274319
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
275320
$(_BuildArgs) \
276-
$(_PublishArgs)
321+
$(_PublishArgs) \
322+
$(_InternalRuntimeDownloadArgs)
277323
displayName: Build RPM installers
278324
installNodeJs: false
279325
installJdk: false
@@ -304,6 +350,7 @@ stages:
304350
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml
305351
$(_BuildArgs)
306352
$(_PublishArgs)
353+
$(_InternalRuntimeDownloadArgs)
307354
installNodeJs: false
308355
installJdk: false
309356
artifacts:
@@ -333,6 +380,7 @@ stages:
333380
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
334381
$(_BuildArgs)
335382
$(_PublishArgs)
383+
$(_InternalRuntimeDownloadArgs)
336384
installNodeJs: false
337385
installJdk: false
338386
artifacts:
@@ -365,6 +413,7 @@ stages:
365413
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
366414
$(_BuildArgs)
367415
$(_PublishArgs)
416+
$(_InternalRuntimeDownloadArgs)
368417
installNodeJs: false
369418
installJdk: false
370419
artifacts:
@@ -397,6 +446,7 @@ stages:
397446
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
398447
$(_BuildArgs)
399448
$(_PublishArgs)
449+
$(_InternalRuntimeDownloadArgs)
400450
installNodeJs: false
401451
installJdk: false
402452
artifacts:
@@ -417,7 +467,7 @@ stages:
417467
jobDisplayName: "Test: Windows Server 2016 x64"
418468
agentOs: Windows
419469
isTestingJob: true
420-
buildArgs: -all -pack -test -BuildNative "/p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false"
470+
buildArgs: -all -pack -test -BuildNative "/p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
421471
beforeBuild:
422472
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
423473
displayName: Setup IISExpress test certificates and schema
@@ -441,7 +491,15 @@ stages:
441491
agentOs: Windows
442492
isTestingJob: true
443493
steps:
444-
- script: ./build.cmd -ci -all -pack
494+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
495+
- task: PowerShell@2
496+
displayName: Setup Private Feeds Credentials
497+
inputs:
498+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
499+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
500+
env:
501+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
502+
- script: ./build.cmd -ci -all -pack $(_InternalRuntimeDownloadArgs)
445503
displayName: Build Repo
446504
- script: ./src/ProjectTemplates/build.cmd -ci -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.pack.binlog"
447505
displayName: Pack Templates
@@ -462,7 +520,7 @@ stages:
462520
jobDisplayName: "Test: macOS 10.13"
463521
agentOs: macOS
464522
isTestingJob: true
465-
buildArgs: --all --test "/p:RunTemplateTests=false"
523+
buildArgs: --all --test "/p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
466524
beforeBuild:
467525
- bash: "./eng/scripts/install-nginx-mac.sh"
468526
displayName: Installing Nginx
@@ -489,7 +547,7 @@ stages:
489547
jobDisplayName: "Test: Ubuntu 16.04 x64"
490548
agentOs: Linux
491549
isTestingJob: true
492-
buildArgs: --all --test "/p:RunTemplateTests=false"
550+
buildArgs: --all --test "/p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
493551
beforeBuild:
494552
- bash: "./eng/scripts/install-nginx-linux.sh"
495553
displayName: Installing Nginx
@@ -539,6 +597,14 @@ stages:
539597
version: 3.0.100
540598
installationPath: $(DotNetCoreSdkDir)
541599
includePreviewVersions: true
600+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
601+
- task: Bash@3
602+
displayName: Setup Private Feeds Credentials
603+
inputs:
604+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
605+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
606+
env:
607+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
542608
- script: ./eng/scripts/ci-source-build.sh --ci --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false
543609
displayName: Run ci-source-build.sh
544610
- 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
@@ -156,6 +156,24 @@ jobs:
156156
- ${{ if ne(parameters.steps, '')}}:
157157
- ${{ parameters.steps }}
158158
- ${{ if eq(parameters.steps, '')}}:
159+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
160+
- ${{ if eq(parameters.agentOs, 'Windows') }}:
161+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
162+
- task: PowerShell@2
163+
displayName: Setup Private Feeds Credentials
164+
inputs:
165+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
166+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
167+
env:
168+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
169+
- ${{ if ne(parameters.agentOs, 'Windows') }}:
170+
- task: Bash@3
171+
displayName: Setup Private Feeds Credentials
172+
inputs:
173+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
174+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
175+
env:
176+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
159177
- ${{ if eq(parameters.buildScript, '') }}:
160178
- ${{ if eq(parameters.agentOs, 'Windows') }}:
161179
- script: .\$(BuildDirectory)\build.cmd -ci /p:DotNetSignType=$(_SignType) -Configuration $(BuildConfiguration) $(BuildScriptArgs)

Directory.Build.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@
8585
<TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName>
8686

8787
<!-- 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. -->
8988
<IsTargetingPackBuilding Condition=" '$(DotNetBuildFromSource)' == 'true' ">false</IsTargetingPackBuilding>
90-
<IsTargetingPackBuilding
91-
Condition=" '$(IsTargetingPackBuilding)' == '' AND '$(VersionPrefix)' == '3.0.1' ">true</IsTargetingPackBuilding>
9289
<IsTargetingPackBuilding
9390
Condition=" '$(IsTargetingPackBuilding)' == '' AND '$(AspNetCorePatchVersion)' != '0' ">false</IsTargetingPackBuilding>
9491
<IsTargetingPackBuilding Condition=" '$(IsTargetingPackBuilding)' == '' ">true</IsTargetingPackBuilding>

NuGet.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
66
<add key="darc-pub-dotnet-core-setup-7d57652" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-core-setup-7d57652f/nuget/v3/index.json" />
77
<add key="darc-pub-dotnet-corefx-4ac4c03" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-corefx-4ac4c036/nuget/v3/index.json" />
8+
<add key="darc-pub-dotnet-corefx-e14c43e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-corefx-e14c43ea/nuget/v3/index.json" />
89
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
910
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
1011
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />

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
@@ -152,6 +158,11 @@ param(
152158
# Other lifecycle targets
153159
[switch]$Help, # Show help
154160

161+
# Optional arguments that enable downloading an internal
162+
# runtime or runtime from a non-default location
163+
[string]$DotNetRuntimeSourceFeed,
164+
[string]$DotNetRuntimeSourceFeedKey,
165+
155166
# Capture the rest
156167
[Parameter(ValueFromRemainingArguments = $true)]
157168
[string[]]$MSBuildArguments
@@ -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)