Skip to content

Commit e3fd747

Browse files
author
John Luo
authored
Merge pull request #26906 from dotnet-maestro-bot/merge/release/5.0-to-master
[automated] Merge branch 'release/5.0' => 'master'
2 parents b0a6755 + fa0ffac commit e3fd747

File tree

180 files changed

+803
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+803
-299
lines changed

.azure/pipelines/ci.yml

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ variables:
3232
value: .NETCORE
3333
- name: _DotNetValidationArtifactsCategory
3434
value: .NETCORE
35+
- name: PostBuildSign
36+
value: false
3537
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
3638
- name: _BuildArgs
3739
value: /p:TeamName=$(_TeamName)
@@ -349,9 +351,11 @@ stages:
349351
includeForks: true
350352
- name: MacOS_x64_Packages
351353
path: artifacts/packages/
352-
- template: jobs/codesign-xplat.yml
353-
parameters:
354-
inputName: MacOS_x64
354+
355+
- ${{ if ne(variables['PostBuildSign'], 'true') }}:
356+
- template: jobs/codesign-xplat.yml
357+
parameters:
358+
inputName: MacOS_x64
355359

356360
# Build Linux x64
357361
- template: jobs/default-build.yml
@@ -369,7 +373,9 @@ stages:
369373
--no-build-nodejs
370374
--no-build-java
371375
-p:OnlyPackPlatformSpecificPackages=true
376+
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml
372377
$(_BuildArgs)
378+
$(_PublishArgs)
373379
$(_InternalRuntimeDownloadArgs)
374380
displayName: Run build.sh
375381
- script: |
@@ -399,7 +405,7 @@ stages:
399405
-p:OnlyPackPlatformSpecificPackages=true \
400406
-p:BuildRuntimeArchive=false \
401407
-p:LinuxInstallerType=rpm \
402-
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
408+
-p:AssetManifestFileName=aspnetcore-Linux_x64-installers.xml \
403409
$(_BuildArgs) \
404410
$(_PublishArgs) \
405411
$(_InternalRuntimeDownloadArgs)
@@ -413,9 +419,11 @@ stages:
413419
includeForks: true
414420
- name: Linux_x64_Packages
415421
path: artifacts/packages/
416-
- template: jobs/codesign-xplat.yml
417-
parameters:
418-
inputName: Linux_x64
422+
423+
- ${{ if ne(variables['PostBuildSign'], 'true') }}:
424+
- template: jobs/codesign-xplat.yml
425+
parameters:
426+
inputName: Linux_x64
419427

420428
# Build Linux ARM
421429
- template: jobs/default-build.yml
@@ -443,9 +451,11 @@ stages:
443451
includeForks: true
444452
- name: Linux_arm_Packages
445453
path: artifacts/packages/
446-
- template: jobs/codesign-xplat.yml
447-
parameters:
448-
inputName: Linux_arm
454+
455+
- ${{ if ne(variables['PostBuildSign'], 'true') }}:
456+
- template: jobs/codesign-xplat.yml
457+
parameters:
458+
inputName: Linux_arm
449459

450460
# Build Linux ARM64
451461
- template: jobs/default-build.yml
@@ -473,9 +483,11 @@ stages:
473483
includeForks: true
474484
- name: Linux_arm64_Packages
475485
path: artifacts/packages/
476-
- template: jobs/codesign-xplat.yml
477-
parameters:
478-
inputName: Linux_arm64
486+
487+
- ${{ if ne(variables['PostBuildSign'], 'true') }}:
488+
- template: jobs/codesign-xplat.yml
489+
parameters:
490+
inputName: Linux_arm64
479491

480492
# Build Linux Musl x64
481493
- template: jobs/default-build.yml
@@ -507,9 +519,11 @@ stages:
507519
includeForks: true
508520
- name: Linux_musl_x64_Packages
509521
path: artifacts/packages/
510-
- template: jobs/codesign-xplat.yml
511-
parameters:
512-
inputName: Linux_musl_x64
522+
523+
- ${{ if ne(variables['PostBuildSign'], 'true') }}:
524+
- template: jobs/codesign-xplat.yml
525+
parameters:
526+
inputName: Linux_musl_x64
513527

514528
# Build Linux Musl ARM
515529
- template: jobs/default-build.yml
@@ -575,9 +589,11 @@ stages:
575589
includeForks: true
576590
- name: Linux_musl_arm64_Packages
577591
path: artifacts/packages/
578-
- template: jobs/codesign-xplat.yml
579-
parameters:
580-
inputName: Linux_musl_arm64
592+
593+
- ${{ if ne(variables['PostBuildSign'], 'true') }}:
594+
- template: jobs/codesign-xplat.yml
595+
parameters:
596+
inputName: Linux_musl_arm64
581597

582598
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
583599
# Test jobs
@@ -768,13 +784,13 @@ stages:
768784
- Windows_build
769785
- Windows_arm_build
770786
- Windows_arm64_build
771-
- CodeSign_Xplat_MacOS_x64
772-
- CodeSign_Xplat_Linux_x64
773-
- CodeSign_Xplat_Linux_arm
774-
- CodeSign_Xplat_Linux_arm64
775-
- CodeSign_Xplat_Linux_musl_x64
776-
- CodeSign_Xplat_Linux_musl_arm
777-
- CodeSign_Xplat_Linux_musl_arm64
787+
- ${{ if ne(variables['PostBuildSign'], 'true') }}:
788+
- CodeSign_Xplat_MacOS_x64
789+
- CodeSign_Xplat_Linux_x64
790+
- CodeSign_Xplat_Linux_arm
791+
- CodeSign_Xplat_Linux_arm64
792+
- CodeSign_Xplat_Linux_musl_x64
793+
- CodeSign_Xplat_Linux_musl_arm64
778794
# In addition to the dependencies above, ensure the build was successful overall.
779795
- Source_Build
780796
pool:

NuGet.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<configuration>
33
<packageSources>
44
<clear />
5+
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
6+
<add key="darc-pub-dotnet-runtime-2d8e19f" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-2d8e19f1/nuget/v3/index.json" />
7+
<add key="darc-pub-dotnet-efcore-69c4c9d" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-efcore-69c4c9d1/nuget/v3/index.json" />
8+
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
59
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
610
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
711
<add key="dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" />

eng/AfterSigning.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
<ItemGroup>
1414
<InstallerFiles Include="$(InstallersOutputPath)**\*.msi" />
1515
<InstallerFiles Include="$(InstallersOutputPath)**\*.exe" />
16-
<InstallerFiles Include="$(InstallersOutputPath)**\*.zip" />
16+
<InstallerFiles Include="$(InstallersOutputPath)**\*.zip" Exclude="$(InstallersOutputPath)**\*.wixpack.zip" />
1717
<InstallerFiles Include="$(InstallersOutputPath)**\*.tar.gz" />
1818
<InstallerFiles Include="$(InstallersOutputPath)**\*.wixlib" />
19+
<InstallerFiles Include="$(InstallersOutputPath)**\*.deb" />
1920
<InstallerFiles Include="$(InstallersOutputPath)**\*.rpm" />
2021
<GenerateChecksumItems Include="%(InstallerFiles.Identity)" >
2122
<DestinationPath>%(FullPath).sha512</DestinationPath>

eng/Publishing.props

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@
5050
</PropertyGroup>
5151

5252
<ItemGroup>
53-
<!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows. -->
54-
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT'" />
53+
<!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows.
54+
Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have
55+
the nupkgs pushed. -->
56+
<ItemsToPushToBlobFeed Remove="@(ItemsToPushToBlobFeed)" Condition="'$(OS)' != 'Windows_NT' and '$(PostBuildSign)' != 'true'" />
57+
<!-- Linux x64 is built in 3 stages: Build the base packages, layout, and archive. Then build deb and rpm installers.
58+
The first and last segments will both publish the layout (they share artifacts). Only publish this during the first pass. -->
59+
<_InstallersToPublish Remove="$(ArtifactsDir)installers\**\*.tar.gz" Condition="'$(BuildRuntimeArchive)' == 'false'" />
60+
<_ChecksumsToPublish Remove="$(ArtifactsDir)installers\**\*.tar.gz.sha512" Condition="'$(BuildRuntimeArchive)' == 'false'" />
5561

5662
<ItemsToPushToBlobFeed Include="@(_ChecksumsToPublish)">
5763
<PublishFlatContainer>true</PublishFlatContainer>
@@ -60,14 +66,9 @@
6066

6167
<ItemsToPushToBlobFeed Include="@(_InstallersToPublish)">
6268
<IsShipping>true</IsShipping>
63-
<ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
6469
<PublishFlatContainer>true</PublishFlatContainer>
6570
<RelativeBlobPath>$(_UploadPathRoot)/%(_InstallersToPublish.UploadPathSegment)/$(_PackageVersion)/%(Filename)%(Extension)</RelativeBlobPath>
6671
</ItemsToPushToBlobFeed>
67-
68-
<!-- Set up ItemsToSign for the push task to pick up. -->
69-
<ItemsToSign Remove="@(ItemsToSign)" />
70-
<ItemsToSign Include="@(ItemsToSignPostBuild)" />
7172
</ItemGroup>
7273
</Target>
7374
</Project>

eng/Signing.props

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<ItemGroup>
66
<!-- Reset Arcade's defaults. -->
77
<ItemsToSign Remove="@(ItemsToSign)" />
8-
<StrongNameSignInfo Remove="@(StrongNameSignInfo)" />
98
<FileExtensionSignInfo Remove="@(FileExtensionSignInfo)" />
109
</ItemGroup>
1110

@@ -15,6 +14,7 @@
1514
<CommonFilesToSign Include="$(VisualStudioSetupOutputPath)**\*.vsix" />
1615
<CommonFilesToSign Include="$(ArtifactsPackagesDir)**\*.jar" />
1716
<CommonFilesToSign Include="$(ArtifactsDir)installers\$(Configuration)\**\*.zip" />
17+
<CommonFilesToSign Remove="$(ArtifactsDir)installers\$(Configuration)\**\*.wixpack.zip" Condition="'$(PostBuildSign)' != 'true'" />
1818
</ItemGroup>
1919
<Choose>
2020
<!-- When post build signing is false - Sign as normal.
@@ -57,24 +57,10 @@
5757
<FileExtensionSignInfo Include=".vsix" CertificateName="VsixSHA2" />
5858
<FileExtensionSignInfo Include=".zip" CertificateName="None" />
5959
<FileExtensionSignInfo Include=".cab" CertificateName="None" />
60-
<FileExtensionSignInfo Include=".msi" CertificateName="None" />
61-
62-
<!--
63-
Use the PublicKeyToken of .NET assemblies to determine which authenticode cert to use.
64-
'None' is required to ensure code signing does not attempt to re-sign them or submit
65-
to ESPR for strong-naming signing. We don't delay sign, so we only need to authenticode sign.
66-
See https://github.com/dotnet/arcade/issues/1911 for context.
67-
-->
68-
<!-- The AspNetCore strong name. -->
69-
<StrongNameSignInfo Include="None" PublicKeyToken="adb9793829ddae60" CertificateName="Microsoft400" />
70-
<!-- The MsSharedLib72 strong name. -->
71-
<StrongNameSignInfo Include="None" PublicKeyToken="31bf3856ad364e35" CertificateName="Microsoft400" />
72-
<!-- The MsftStrongName strong name. -->
73-
<StrongNameSignInfo Include="None" PublicKeyToken="b03f5f7f11d50a3a" CertificateName="Microsoft400" />
74-
<!-- The MsftStrongName2 strong name. -->
75-
<StrongNameSignInfo Include="None" PublicKeyToken="b77a5c561934e089" CertificateName="Microsoft400" />
76-
<!-- The MsftOpenStrongName strong name. -->
77-
<StrongNameSignInfo Include="None" PublicKeyToken="cc7b13ffcd2ddd51" CertificateName="Microsoft400" />
60+
<!-- If doing post build sign, explicitly give MSIs a cert. If doing in build signing,
61+
this is handled by the wix targets, and .msi should be "None" -->
62+
<FileExtensionSignInfo Include=".msi" CertificateName="Microsoft400" Condition="'$(PostBuildSign)' == 'true'" />
63+
<FileExtensionSignInfo Include=".msi" CertificateName="None" Condition="'$(PostBuildSign)' != 'true'" />
7864

7965
<!-- Native .dll's. These don't have a public key token, but are from Microsoft and should be signed. -->
8066
<FileSignInfo Include="aspnetcore.dll" CertificateName="Microsoft400" />

eng/Versions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@
231231
<IdentityServer4StoragePackageVersion>4.1.0</IdentityServer4StoragePackageVersion>
232232
<IdentityServer4EntityFrameworkStoragePackageVersion>4.1.0</IdentityServer4EntityFrameworkStoragePackageVersion>
233233
<MessagePackPackageVersion>2.1.90</MessagePackPackageVersion>
234-
<MicrosoftIdentityWebPackageVersion>0.4.0-preview</MicrosoftIdentityWebPackageVersion>
235-
<MicrosoftIdentityWebMicrosoftGraphPackageVersion>0.4.0-preview</MicrosoftIdentityWebMicrosoftGraphPackageVersion>
236-
<MicrosoftIdentityWebUIPackageVersion>0.4.0-preview</MicrosoftIdentityWebUIPackageVersion>
234+
<MicrosoftIdentityWebPackageVersion>1.1.0</MicrosoftIdentityWebPackageVersion>
235+
<MicrosoftIdentityWebMicrosoftGraphPackageVersion>1.1.0</MicrosoftIdentityWebMicrosoftGraphPackageVersion>
236+
<MicrosoftIdentityWebUIPackageVersion>1.1.0</MicrosoftIdentityWebUIPackageVersion>
237237
<MessagePackAnalyzerPackageVersion>$(MessagePackPackageVersion)</MessagePackAnalyzerPackageVersion>
238238
<MoqPackageVersion>4.10.0</MoqPackageVersion>
239239
<MonoCecilPackageVersion>0.11.2</MonoCecilPackageVersion>

eng/targets/Cpp.Common.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<Target Name="GetVcxprojFilesToSign" BeforeTargets="SignFiles">
77
<ItemGroup>
8-
<FilesToSign Include="$(TargetPath)" Condition="'$(ConfigurationType)' == 'DynamicLibrary'" Authenticode="Microsoft400" />
8+
<FilesToSign Include="$(TargetPath)" Condition="'$(ConfigurationType)' == 'DynamicLibrary' AND '$(PostBuildSign)' != 'true'" Authenticode="Microsoft400" />
99
</ItemGroup>
1010
</Target>
1111

eng/targets/Wix.Common.targets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@
3939
<Import Project="$(NuGetRestoreTargets)" />
4040
<Import Project="$(MSBuildProjectExtensionsPath)$(MSBuildProjectFile).*.targets" />
4141
<Import Project="$(WixTargetsPath)" Condition="'$(WixTargetsPath)' != '' " />
42-
<Import Project="$(MicroBuildPluginDirectory)\MicroBuild.Plugins.*\**\build\MicroBuild.Plugins.*.targets" Condition="'$(DisableMicroBuild)' != 'true' AND '$(MicroBuildPluginDirectory)' != ''" />
42+
<!-- Don't import the Microbuild signing targets when post build sign is enabled. They override the
43+
standard Wix targets for signing, and call ESRP directly (rather than through SignTool). So without this,
44+
ASPNetCore will sign even when PostbuildSign == true -->
45+
<Import Project="$(MicroBuildPluginDirectory)\MicroBuild.Plugins.*\**\build\MicroBuild.Plugins.*.targets" Condition="'$(DisableMicroBuild)' != 'true' AND '$(MicroBuildPluginDirectory)' != '' AND '$(PostBuildSign)' != 'true'" />
4346
</Project>

src/Components/Components/src/PublicAPI.Unshipped.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType.Text = 2 -> Micro
211211
Microsoft.AspNetCore.Components.RenderTree.Renderer
212212
Microsoft.AspNetCore.Components.RenderTree.Renderer.AssignRootComponentId(Microsoft.AspNetCore.Components.IComponent! component) -> int
213213
Microsoft.AspNetCore.Components.RenderTree.Renderer.Dispose() -> void
214+
Microsoft.AspNetCore.Components.RenderTree.Renderer.DisposeAsync() -> System.Threading.Tasks.ValueTask
214215
Microsoft.AspNetCore.Components.RenderTree.Renderer.ElementReferenceContext.get -> Microsoft.AspNetCore.Components.ElementReferenceContext?
215216
Microsoft.AspNetCore.Components.RenderTree.Renderer.ElementReferenceContext.set -> void
216217
Microsoft.AspNetCore.Components.RenderTree.Renderer.GetCurrentRenderTreeFrames(int componentId) -> Microsoft.AspNetCore.Components.RenderTree.ArrayRange<Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame>

0 commit comments

Comments
 (0)