Skip to content

Commit 9b37e0c

Browse files
[release/10.0-preview5] Source code updates from dotnet/dotnet (#62081)
[release/10.0-preview5] Source code updates from dotnet/dotnet - Align M.CA package versions (cherry picked from commit ce921d3) - Add System.Threading.AccessControl to expected assemblies It was added in dotnet/runtime#110416 (cherry picked from commit 1d3d3de) - React to dotnet/runtime#115494 (cherry picked from commit 97ebf48)
1 parent 16745cf commit 9b37e0c

26 files changed

+947
-349
lines changed

Directory.Build.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@
133133

134134
<!-- // Temporary diagnostic code from https://github.com/dotnet/extensions/pull/4130 for metrics APIs used in test. -->
135135
<NoWarn>$(NoWarn);TBD</NoWarn>
136-
137-
<!-- In Preview5 only, NoWarn this signing error about mismatched 1st/3rd party .dll/signatures. SignTool mistakenly sees R2R images as 3rd-party -->
138-
<NoWarn>$(NoWarn);SIGN004</NoWarn>
139136
</PropertyGroup>
140137

141138
<!-- Source code settings -->

eng/Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@
5656
$(RepoRoot)src\SignalR\perf\benchmarkapps\**\*.csproj;
5757
" />
5858

59-
<!-- In the VMR, we don't build the native ANCM bits in pass 1 -->
59+
<!-- In the .NET product build mode, don't build the native ANCM bits in pass 1 -->
6060
<ProjectToExclude Include="
6161
$(RepoRoot)src\Installers\**\*.vcxproj;
6262
"
6363
Condition=" '$(BuildNative)' == 'true' and '$(DotNetBuild)' == 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1') " />
6464

6565

66-
<!-- This project requires inputs from x64, x86, and arm64 on Windows - therefore in the VMR, we build it in pass 2 -->
66+
<!-- This project requires inputs from x64, x86, and arm64 on Windows - therefore in the .NET product build mode, build it in pass 2 -->
6767
<ProjectToExclude Include="
6868
$(RepoRoot)src\Servers\IIS/IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj;
6969
"
@@ -83,7 +83,7 @@
8383
</ProjectToBuild>
8484
</ItemGroup>
8585
</When>
86-
<!-- Projects to build in VMR build pass 2 -->
86+
<!-- Projects to build in .NET product build pass 2 -->
8787
<When Condition="'$(DotNetBuildPass)' == '2'">
8888
<ItemGroup Condition=" '$(DotNetBuild)' == 'true' AND '$(TargetOsName)' == 'win' AND '$(TargetArchitecture)' == 'x64' ">
8989
<!-- Build Hosting Bundle -->
@@ -264,7 +264,7 @@
264264
<_VcxTargetPlatform Condition="'$(TargetArchitecture)' == 'arm64'">ARM64</_VcxTargetPlatform>
265265
</PropertyGroup>
266266

267-
<!-- In the VMR, we build the installers entirely via HostingBundle ProjectReferences in pass 2 -->
267+
<!-- In .NET product build mode, build the installers entirely via HostingBundle ProjectReferences in pass 2 -->
268268
<ItemGroup Condition="'$(DotNetBuild)' != 'true' and '$(_BuildWindowsInstallers)' == 'true' ">
269269
<!-- Build the ANCM custom action -->
270270
<InstallerProject Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\CustomAction\aspnetcoreCA.vcxproj" AdditionalProperties="Platform=x64" />

eng/Common.props

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

1212
<TargetRuntimeIdentifier Condition="'$(TargetRuntimeIdentifier)' == ''">$(TargetOsName)-$(TargetArchitecture)</TargetRuntimeIdentifier>
1313
<PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>
14-
<DefaultAppHostRuntimeIdentifier Condition=" '$(DotNetBuild)' == 'true' ">$(TargetRuntimeIdentifier)</DefaultAppHostRuntimeIdentifier>
14+
<DefaultAppHostRuntimeIdentifier Condition="'$(DotNetBuild)' == 'true'">$(TargetRuntimeIdentifier)</DefaultAppHostRuntimeIdentifier>
1515

1616
<BuildNodeJS>$(BuildNodeJSUnlessSourcebuild)</BuildNodeJS>
1717
<BuildNodeJS Condition="'$(DotNetBuildSourceOnly)' == 'true'">false</BuildNodeJS>

eng/Dependencies.props

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,23 @@ and are generated based on the last package release.
258258
Condition=" $([System.String]::new('%(Identity)').StartsWith('Microsoft.NETCore.App.Runtime.')) or $([System.String]::new('%(Identity)').StartsWith('Microsoft.NETCore.App.Crossgen2.'))">$(MicrosoftNETCoreAppRefVersion)</Version>
259259
</LatestPackageReference>
260260
</ItemGroup>
261+
262+
<!-- Replicates the same overriding of versions that occurs on Roslyn package versions for source only builds -->
263+
<ItemGroup Label="Source only build overrides" Condition="'$(DotNetBuildSourceOnly)' == 'true'">
264+
<LatestPackageReference Update="Microsoft.CodeAnalysis.Common">
265+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
266+
</LatestPackageReference>
267+
<LatestPackageReference Update="Microsoft.CodeAnalysis.CSharp">
268+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
269+
</LatestPackageReference>
270+
<LatestPackageReference Update="Microsoft.CodeAnalysis.CSharp.Workspaces">
271+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
272+
</LatestPackageReference>
273+
<LatestPackageReference Update="Microsoft.CodeAnalysis.ExternalAccess.AspNetCore">
274+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
275+
</LatestPackageReference>
276+
<LatestPackageReference Update="Microsoft.CodeAnalysis.Razor">
277+
<Version>$(MicrosoftCodeAnalysisVersion_LatestVS)</Version>
278+
</LatestPackageReference>
279+
</ItemGroup>
261280
</Project>

eng/Publishing.props

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<Project>
2+
23
<PropertyGroup>
34
<ProducesDotNetReleaseShippingAssets>true</ProducesDotNetReleaseShippingAssets>
45

5-
<!-- Do not push .nupkg files from Linux and macOS builds. They'll be packed up separately and signed on Windows.
6-
Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have
7-
the nupkgs pushed. Do not do this if building from source, since we want the source build intermediate package
8-
to be published. Use DotNetBuildRepo is only set in the internal source build,
9-
and Build.proj is invoked from the wrapper build. -->
6+
<!-- Don't sign and publish rid agnostic nuget packages from other builds than windows when not building
7+
inside the VMR. Do not remove if post build sign is true, as we avoid the xplat codesign jobs, and need to have
8+
the nupkgs pushed. -->
109
<EnableDefaultArtifacts Condition="'$(OS)' != 'Windows_NT' and
1110
'$(PostBuildSign)' != 'true' and
12-
'$(DotNetBuildRepo)' != 'true'">false</EnableDefaultArtifacts>
11+
'$(DotNetBuild)' != 'true'">false</EnableDefaultArtifacts>
1312

1413
<!-- This avoids creating VS.*.symbols.nupkg packages that are identical to the original package. -->
1514
<AutoGenerateSymbolPackages>false</AutoGenerateSymbolPackages>

eng/SharedFramework.External.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<ExternalAspNetCoreAppReference Include="Microsoft.Extensions.Options" Version="$(MicrosoftExtensionsOptionsVersion)" />
4444
<ExternalAspNetCoreAppReference Include="Microsoft.Extensions.Primitives" Version="$(MicrosoftExtensionsPrimitivesVersion)" />
4545
<ExternalAspNetCoreAppReference Include="System.Security.Cryptography.Xml" Version="$(SystemSecurityCryptographyXmlVersion)" />
46+
<ExternalAspNetCoreAppReference Include="System.Threading.AccessControl" Version="$(SystemThreadingAccessControlVersion)" />
4647
<ExternalAspNetCoreAppReference Include="System.Threading.RateLimiting" Version="$(SystemThreadingRateLimitingVersion)" />
4748

4849
<!--

eng/Signing.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
<UseDotNetCertificate>true</UseDotNetCertificate>
88
</PropertyGroup>
99

10+
<PropertyGroup>
11+
<!-- In Preview5 only, NoWarn this signing error about mismatched 1st/3rd party .dll/signatures. SignTool mistakenly sees R2R images as 3rd-party -->
12+
<NoWarn>$(NoWarn);SIGN004</NoWarn>
13+
</PropertyGroup>
14+
1015
<ItemGroup Label="File signing information">
1116
<!-- Third-party components which should be signed. -->
1217
<FileSignInfo Include="Newtonsoft.Json.dll" CertificateName="3PartySHA2" />

0 commit comments

Comments
 (0)