Skip to content

Commit d443d53

Browse files
authored
Merge branch 'main' into ApiDiff
2 parents 7446164 + 96aa638 commit d443d53

File tree

1,319 files changed

+74170
-94813
lines changed

Some content is hidden

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

1,319 files changed

+74170
-94813
lines changed

.vsts-ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ extends:
113113
- powershell: New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force
114114
displayName: Create artifacts/bin directory
115115
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}:
116-
timeoutInMinutes: 90
116+
timeoutInMinutes: 180
117117
windowsJobParameterSets:
118118
### OFFICIAL ###
119119
- categoryName: Official
120120
publishArgument: $(_publishArgument)
121121
signArgument: $(_signArgument)
122-
officialBuildProperties: $(_officialBuildProperties)
122+
officialBuildProperties: $(_officialBuildProperties) /p:BuildWorkloads=true
123123
enableDefaultArtifacts: true
124124
runTests: false
125125
publishRetryConfig: true
@@ -133,6 +133,8 @@ extends:
133133
runTests: false
134134
variables:
135135
_SignType: real
136+
dependsOn: Official_windows_x64
137+
downloadManifestMsiPackages: true
136138
- categoryName: Official
137139
targetArchitecture: arm64
138140
publishArgument: $(_publishArgument)
@@ -141,6 +143,8 @@ extends:
141143
runTests: false
142144
variables:
143145
_SignType: real
146+
dependsOn: Official_windows_x64
147+
downloadManifestMsiPackages: true
144148
### PGO ###
145149
- categoryName: PGO
146150
pgoInstrument: true

Directory.Packages.props

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<ItemGroup>
99
<PackageVersion Include="AwesomeAssertions" Version="$(AwesomeAssertionsVersion)" />
1010
<PackageVersion Include="AwesomeAssertions.Json" Version="$(AwesomeAssertionsJsonVersion)" />
11+
<PackageVersion Include="MicroBuild.Plugins.SwixBuild.Dotnet" Version="1.1.87-gba258badda" />
1112
<PackageVersion Include="Microsoft.ApplicationInsights" Version="$(MicrosoftApplicationInsightsPackageVersion)" />
1213
<PackageVersion Include="Microsoft.AspNetCore.DeveloperCertificates.XPlat" Version="$(MicrosoftAspNetCoreDeveloperCertificatesXPlatPackageVersion)" />
1314
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.Extensions.Tooling.Internal" Version="$(MicrosoftAspNetCoreMvcRazorExtensionsToolingInternalPackageVersion)" />
@@ -33,6 +34,8 @@
3334
<PackageVersion Include="Microsoft.DiaSymReader" Version="$(MicrosoftDiaSymReaderVersion)" />
3435
<PackageVersion Include="Microsoft.Deployment.DotNet.Releases" Version="$(MicrosoftDeploymentDotNetReleasesVersion)" />
3536
<PackageVersion Include="Microsoft.DotNet.Build.Tasks.Installers" Version="$(MicrosoftDotNetBuildTasksInstallersPackageVersion)" />
37+
<PackageVersion Include="Microsoft.DotNet.Build.Tasks.Templating" Version="$(MicrosoftDotNetBuildTasksTemplatingPackageVersion)" />
38+
<PackageVersion Include="Microsoft.DotNet.Build.Tasks.Workloads" Version="$(MicrosoftDotNetBuildTasksWorkloadsPackageVersion)" />
3639
<PackageVersion Include="Microsoft.DotNet.DarcLib" Version="$(MicrosoftDotNetDarcLibVersion)" />
3740
<PackageVersion Include="Microsoft.DotNet.Installer.Windows.Security.TestData" Version="$(MicrosoftDotNetInstallerWindowsSecurityTestDataPackageVersion)" />
3841
<PackageVersion Include="Microsoft.DotNet.SignCheck" Version="$(ArcadeSdkVersion)" />
@@ -46,7 +49,6 @@
4649
<PackageVersion Include="Microsoft.Extensions.ObjectPool" Version="$(MicrosoftExtensionsObjectPoolPackageVersion)" />
4750
<PackageVersion Include="Microsoft.Extensions.Configuration.Ini" Version="$(MicrosoftExtensionsConfigurationIniVersion)" />
4851
<PackageVersion Include="Microsoft.FSharp.Compiler" Version="$(MicrosoftFSharpCompilerPackageVersion)" />
49-
<PackageVersion Include="Microsoft.IO.Redist" Version="$(MicrosoftIORedistPackageVersion)" />
5052
<PackageVersion Include="Microsoft.Net.Compilers.Toolset.Framework" Version="$(MicrosoftNetCompilersToolsetFrameworkPackageVersion)" />
5153
<PackageVersion Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
5254
<PackageVersion Include="Microsoft.NET.HostModel" Version="$(MicrosoftNETHostModelVersion)" />

eng/Build.props

+13-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,26 @@
44
they depend on assets from other verticals that are built in the first build pass. -->
55
<ItemGroup Condition="'$(DotNetBuildPass)' == '2' and
66
'$(OS)' == 'Windows_NT' and
7-
'$(TargetArchitecture)' == 'x64'">
7+
'$(TargetArchitecture)' == 'x64' and
8+
'$(BuildWorkloads)' != 'true'">
89
<ProjectToBuild Include="$(RepoRoot)src\Layout\VS.Redist.Common.Net.Core.SDK.MSBuildExtensions\VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.proj" DotNetBuildPass="2" />
910
<ProjectToBuild Include="$(RepoRoot)src\Layout\VS.Redist.Common.Net.Core.SDK.VSTemplateLocator\VS.Redist.Common.Net.Core.SDK.VSTemplateLocator.proj" DotNetBuildPass="2" />
1011
</ItemGroup>
1112

12-
<!-- For product build, build the sdk bundle in the second build pass on windows as
13+
<!-- For product build, build the Workloads in the second build pass on windows as
1314
it depends on assets from other verticals that are built in the first build pass. -->
1415
<ItemGroup Condition="'$(DotNetBuildPass)' == '2' and
16+
'$(OS)' == 'Windows_NT' and
17+
'$(TargetArchitecture)' == 'x64' and
18+
'$(BuildWorkloads)' == 'true'">
19+
<ProjectToBuild Include="$(RepoRoot)src\Workloads\VSInsertion\workloads.csproj" DotNetBuildPass="2" />
20+
</ItemGroup>
21+
22+
<!-- For product build, build the sdk bundle in the third build pass on windows as
23+
it depends on assets from other verticals that are built in the second build pass. -->
24+
<ItemGroup Condition="'$(DotNetBuildPass)' == '3' and
1525
'$(OS)' == 'Windows_NT'">
16-
<ProjectToBuild Include="$(RepoRoot)src\Layout\redist\redist.csproj" DotNetBuildPass="2" />
26+
<ProjectToBuild Include="$(RepoRoot)src\Layout\redist\redist.csproj" DotNetBuildPass="3" />
1727
</ItemGroup>
1828

1929
</Project>

eng/Signing.props

+23-3
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,25 @@
3434
<FileSignInfo Include="comhost.dll" CertificateName="None" />
3535
<FileSignInfo Include="singlefilehost.exe" CertificateName="None" />
3636

37-
<!-- .ttf and .js files come in from some older aspnetcore packages (e.g. 2.1).
37+
<!-- .ttf and .otf files come in from some older aspnetcore packages (e.g. 2.1).
3838
These files in the 5.0 packages are NOT signed. When doing postbuild signing,
3939
SignTool will recognize that the files in the installer zips came from the 5.0 packages
4040
pulled in from aspnetcore, and aspnetcore said not to sign them. This info is not
4141
available for the 2.1 packages, so we need to avoid signing these in this repo. -->
4242
<FileExtensionSignInfo Include=".ttf" CertificateName="None" />
4343
<FileExtensionSignInfo Include=".otf" CertificateName="None" />
44-
<FileExtensionSignInfo Remove=".js" />
45-
<FileExtensionSignInfo Include=".js" CertificateName="None" />
44+
45+
<!-- We don't need to code sign .js files because they are not used in Windows Script Host. -->
46+
<FileExtensionSignInfo Update=".js" CertificateName="None" />
47+
48+
<!-- Skip signing .py files because they are already signed -->
49+
<FileExtensionSignInfo Update=".py" CertificateName="None" />
50+
<FileExtensionSignInfo Include=".pyd" CertificateName="None" />
51+
<FileExtensionSignInfo Include=".cat" CertificateName="None" />
52+
53+
<!-- Zero length files should not be signed because it breaks signing/ESRP. -->
54+
<FileSignInfo Include="__init__.py" CertificateName="None" />
55+
<FileSignInfo Include="eggs.py" CertificateName="None" />
4656
</ItemGroup>
4757

4858
<!--
@@ -55,6 +65,10 @@
5565
<FileSignInfo Include="Nerdbank.Streams.dll" CertificateName="$(ExternalCertificateId)" />
5666
<FileSignInfo Include="Newtonsoft.Json.dll" CertificateName="$(ExternalCertificateId)" />
5767
<FileSignInfo Include="Valleysoft.DockerCredsProvider.dll" CertificateName="$(ExternalCertificateId)" />
68+
69+
<!-- Additionally, we need to notarize any .pkg files -->
70+
<MacOSPkg Include="$(ArtifactsShippingPackagesDir)**/dotnet-sdk*.pkg" Exclude="$(ArtifactsShippingPackagesDir)**/dotnet-sdk-internal*.pkg" />
71+
<FileSignInfo Include="@(MacOSPkg->'%(Filename)%(Extension)')" CertificateName="MacDeveloperWithNotarization" />
5872
</ItemGroup>
5973

6074
<!-- Third party DLLs used in src projects that are not participating in source-build -->
@@ -84,6 +98,12 @@
8498
Kind="Package" />
8599
</ItemGroup>
86100

101+
<ItemGroup Condition="'$(DotNetBuild)' != 'true' or '$(BuildWorkloads)' == 'true'">
102+
<Artifact Include="$(VisualStudioSetupInsertionPath)\**\*.zip"
103+
IsShipping="true"
104+
Kind="Blob" />
105+
</ItemGroup>
106+
87107
<!-- Only publish this file from win-x64 so that we don't end up with duplicates. -->
88108
<ItemGroup Condition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(TargetArchitecture)' == 'x64' and '$(PgoInstrument)' != 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1')">
89109
<SdkArtifact Include="$(ArtifactsShippingPackagesDir)productVersion.txt" />

0 commit comments

Comments
 (0)