Skip to content

Commit b038f44

Browse files
committed
Merge in 'release/6.0' changes
2 parents f9ae0f5 + de41c58 commit b038f44

31 files changed

+987
-157
lines changed

.azure/pipelines/richnav.yml

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,59 +6,69 @@
66
trigger:
77
branches:
88
include:
9-
- blazor-wasm
109
- main
1110
- release/*
12-
- internal/release/*
11+
12+
# Do not run this pipeline for PR validation.
13+
pr: none
1314

1415
variables:
1516
- name: _BuildArgs
1617
value: '/p:SkipTestBuild=true'
17-
- name: Windows86LogArgs
18+
- name: WindowsNonX64LogArgs
1819
value: -ExcludeCIBinaryLog
1920

2021
stages:
2122
- stage: build
2223
displayName: Build
2324
jobs:
24-
# Build Windows (x64/x86)
25+
# Build Windows (x64/x86/arm64)
2526
- template: jobs/default-build.yml
2627
parameters:
2728
codeSign: false
2829
jobName: Windows_build
29-
jobDisplayName: "Build: Windows x64/x86"
30+
jobDisplayName: "Build: Windows x64/x86/arm64"
3031
enableRichCodeNavigation: true
3132
agentOs: Windows
3233
steps:
33-
- script: ./build.cmd
34+
- script: ./eng/build.cmd
3435
-ci
35-
-all
3636
-arch x64
37-
/p:EnableRichCodeNavigation=true
37+
-buildNative
38+
/p:EnableRichCodeNavigation=false
39+
$(_BuildArgs)
40+
displayName: Build x64 native assets
41+
42+
- script: ./eng/build.cmd
43+
-ci
44+
-arch x64
45+
-all
46+
-noBuildNative
47+
-noBuildRepoTasks
3848
$(_BuildArgs)
3949
displayName: Build x64
4050

4151
# Build the x86 shared framework
4252
# This is going to actually build x86 native assets.
43-
- script: ./build.cmd
53+
- script: ./eng/build.cmd
4454
-ci
45-
-noBuildRepoTasks
4655
-arch x86
4756
-all
4857
-noBuildJava
4958
-noBuildNative
50-
/p:EnableRichCodeNavigation=true
59+
-noBuildRepoTasks
5160
$(_BuildArgs)
52-
$(Windows86LogArgs)
61+
$(WindowsNonX64LogArgs)
5362
displayName: Build x86
5463

55-
# Windows installers bundle both x86 and x64 assets
56-
- script: ./build.cmd
64+
# Build the arm64 shared framework
65+
- script: ./eng/build.cmd
5766
-ci
58-
-noBuildRepoTasks
59-
-buildInstallers
67+
-arch arm64
68+
-noBuildJava
6069
-noBuildNative
61-
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml
62-
/p:EnableRichCodeNavigation=true
70+
-noBuildRepoTasks
6371
$(_BuildArgs)
64-
displayName: Build Installers
72+
$(WindowsNonX64LogArgs)
73+
displayName: Build ARM64
74+

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
$(MSBuildProjectName.EndsWith('.Test')) OR
3131
$(MSBuildProjectName.EndsWith('.FunctionalTest')) ) ">true</IsUnitTestProject>
3232
<IsTestAssetProject Condition=" $(RepoRelativeProjectDir.Contains('testassets')) OR $(MSBuildProjectName.Contains('TestCommon'))">true</IsTestAssetProject>
33+
<IsProjectTemplateProject Condition=" ($(RepoRelativeProjectDir.Contains('ProjectTemplates')) OR $(MSBuildProjectName.Contains('ProjectTemplates')) ) AND
34+
'$(IsUnitTestProject)' != 'true' AND
35+
'$(IsTestAssetProject)' != 'true' ">true</IsProjectTemplateProject>
3336
<IsSampleProject Condition=" $(RepoRelativeProjectDir.ToUpperInvariant().Contains('SAMPLE')) ">true</IsSampleProject>
3437
<IsAnalyzersProject Condition="$(MSBuildProjectName.EndsWith('.Analyzers'))">true</IsAnalyzersProject>
3538
<IsShipping Condition=" '$(IsSampleProject)' == 'true' OR

Directory.Build.targets

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<Project>
22

33
<PropertyGroup>
4-
<!-- Only build Microsoft.AspNetCore.App, Microsoft.AspNetCore.App.Ref, and ref/ assemblies in source build. -->
4+
<!-- Only build Microsoft.AspNetCore.App, Microsoft.AspNetCore.App.Ref, ref/ assemblies, and ProjectTemplates in source build. -->
55
<!-- Analyzer package are needed in source build for WebSDK -->
66
<ExcludeFromSourceBuild
7-
Condition="'$(ExcludeFromSourceBuild)' == '' and '$(DotNetBuildFromSource)' == 'true' and '$(IsAspNetCoreApp)' != 'true' and '$(MSBuildProjectName)' != '$(TargetingPackName)' and '$(IsAnalyzersProject)' != 'true'">true</ExcludeFromSourceBuild>
7+
Condition="'$(ExcludeFromSourceBuild)' == '' and
8+
'$(DotNetBuildFromSource)' == 'true' and
9+
'$(IsAspNetCoreApp)' != 'true' and
10+
'$(MSBuildProjectName)' != '$(TargetingPackName)' and
11+
'$(IsAnalyzersProject)' != 'true' and
12+
'$(IsProjectTemplateProject)' != 'true'">true</ExcludeFromSourceBuild>
813

914
<!-- If the user has specified that they want to skip building any test related projects with SkipTestBuild,
1015
suppress all targets for TestProjects using ExcludeFromBuild. -->

eng/Version.Details.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,22 +280,22 @@
280280
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri>
281281
<Sha>be98e88c760526452df94ef452fff4602fb5bded</Sha>
282282
</Dependency>
283-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.22161.1">
283+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.22178.5">
284284
<Uri>https://github.com/dotnet/arcade</Uri>
285-
<Sha>879df783283dfb44c7653493fdf7fd7b07ba6b01</Sha>
285+
<Sha>f8c0d51185208227e582f76ac3c5003db237b689</Sha>
286286
<SourceBuild RepoName="arcade" ManagedOnly="true" />
287287
</Dependency>
288-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="6.0.0-beta.22161.1">
288+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="6.0.0-beta.22178.5">
289289
<Uri>https://github.com/dotnet/arcade</Uri>
290-
<Sha>879df783283dfb44c7653493fdf7fd7b07ba6b01</Sha>
290+
<Sha>f8c0d51185208227e582f76ac3c5003db237b689</Sha>
291291
</Dependency>
292-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="6.0.0-beta.22161.1">
292+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="6.0.0-beta.22178.5">
293293
<Uri>https://github.com/dotnet/arcade</Uri>
294-
<Sha>879df783283dfb44c7653493fdf7fd7b07ba6b01</Sha>
294+
<Sha>f8c0d51185208227e582f76ac3c5003db237b689</Sha>
295295
</Dependency>
296-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.22161.1">
296+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.22178.5">
297297
<Uri>https://github.com/dotnet/arcade</Uri>
298-
<Sha>879df783283dfb44c7653493fdf7fd7b07ba6b01</Sha>
298+
<Sha>f8c0d51185208227e582f76ac3c5003db237b689</Sha>
299299
</Dependency>
300300
</ToolsetDependencies>
301301
</Dependencies>

eng/Versions.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<PropertyGroup Label="Version settings">
99
<AspNetCoreMajorVersion>6</AspNetCoreMajorVersion>
1010
<AspNetCoreMinorVersion>0</AspNetCoreMinorVersion>
11-
<AspNetCorePatchVersion>4</AspNetCorePatchVersion>
12-
<ValidateBaseline>true</ValidateBaseline>
11+
<AspNetCorePatchVersion>5</AspNetCorePatchVersion>
12+
<ValidateBaseline>false</ValidateBaseline>
1313
<!--
1414
When StabilizePackageVersion is set to 'true', this branch will produce stable outputs for 'Shipping' packages
1515
-->
@@ -131,8 +131,8 @@
131131
<MicrosoftEntityFrameworkCoreVersion>6.0.4</MicrosoftEntityFrameworkCoreVersion>
132132
<MicrosoftEntityFrameworkCoreDesignVersion>6.0.4</MicrosoftEntityFrameworkCoreDesignVersion>
133133
<!-- Packages from dotnet/arcade -->
134-
<MicrosoftDotNetBuildTasksInstallersVersion>6.0.0-beta.22161.1</MicrosoftDotNetBuildTasksInstallersVersion>
135-
<MicrosoftDotNetBuildTasksTemplatingVersion>6.0.0-beta.22161.1</MicrosoftDotNetBuildTasksTemplatingVersion>
134+
<MicrosoftDotNetBuildTasksInstallersVersion>6.0.0-beta.22178.5</MicrosoftDotNetBuildTasksInstallersVersion>
135+
<MicrosoftDotNetBuildTasksTemplatingVersion>6.0.0-beta.22178.5</MicrosoftDotNetBuildTasksTemplatingVersion>
136136
</PropertyGroup>
137137
<!--
138138

eng/common/templates/steps/source-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ steps:
4343
# In that case, add variables to allow the download of internal runtimes if the specified versions are not found
4444
# in the default public locations.
4545
internalRuntimeDownloadArgs=
46-
if [ '$(dotnetclimsrc-read-sas-token-base64)' != '$''(dotnetclimsrc-read-sas-token-base64)' ]; then
47-
internalRuntimeDownloadArgs='/p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64) --runtimesourcefeed https://dotnetclimsrc.blob.core.windows.net/dotnet --runtimesourcefeedkey $(dotnetclimsrc-read-sas-token-base64)'
46+
if [ '$(dotnetbuilds-internal-container-read-token-base64)' != '$''(dotnetbuilds-internal-container-read-token-base64)' ]; then
47+
internalRuntimeDownloadArgs='/p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64) --runtimesourcefeed https://dotnetbuilds.blob.core.windows.net/internal --runtimesourcefeedkey $(dotnetbuilds-internal-container-read-token-base64)'
4848
fi
4949
5050
buildConfig=Release

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"msbuild-sdks": {
3131
"Yarn.MSBuild": "1.22.10",
32-
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.22161.1",
33-
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.22161.1"
32+
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.22178.5",
33+
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.22178.5"
3434
}
3535
}

src/Components/WebAssembly/Authentication.Msal/src/Microsoft.Authentication.WebAssembly.Msal.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

3-
<Sdk Name="Yarn.MSBuild" />
3+
<Import Project="Sdk.props" Sdk="Yarn.MSBuild" Condition=" '$(DotNetBuildFromSource)' != 'true'" />
44

55
<PropertyGroup>
66
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
@@ -25,6 +25,7 @@
2525
<PropertyGroup>
2626
<YarnWorkingDir>$(MSBuildThisFileDirectory)Interop\</YarnWorkingDir>
2727
<ResolveStaticWebAssetsInputsDependsOn>
28+
CheckForSourceBuild;
2829
CompileInterop;
2930
IncludeCompileInteropOutput;
3031
$(ResolveStaticWebAssetsInputsDependsOn)
@@ -91,5 +92,11 @@
9192
<FileWrites Include="$(_InteropBuildOutput)" />
9293
</ItemGroup>
9394
</Target>
95+
96+
<Target Name="CheckForSourceBuild" Condition=" '$(DotNetBuildFromSource)' == 'true'">
97+
<Error Text="The Yarn.Msbuild SDK is currently excluded from SourceBuild. If you are enabling this project for SourceBuild, remove the condition on the Yarn.Msbuild SDK above." />
98+
</Target>
9499

100+
<Import Project="Sdk.targets" Sdk="Yarn.MSBuild" Condition=" '$(DotNetBuildFromSource)' != 'true'" />
101+
95102
</Project>

src/Components/WebAssembly/WebAssembly.Authentication/src/Microsoft.AspNetCore.Components.WebAssembly.Authentication.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

3-
<Sdk Name="Yarn.MSBuild" />
3+
<Import Project="Sdk.props" Sdk="Yarn.MSBuild" Condition=" '$(DotNetBuildFromSource)' != 'true'" />
44

55
<PropertyGroup>
66
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
@@ -26,6 +26,7 @@
2626
<PropertyGroup>
2727
<YarnWorkingDir>$(MSBuildThisFileDirectory)Interop\</YarnWorkingDir>
2828
<ResolveStaticWebAssetsInputsDependsOn>
29+
CheckForSourceBuild;
2930
CompileInterop;
3031
IncludeCompileInteropOutput;
3132
$(ResolveStaticWebAssetsInputsDependsOn)
@@ -93,4 +94,10 @@
9394
</ItemGroup>
9495
</Target>
9596

97+
<Target Name="CheckForSourceBuild" Condition=" '$(DotNetBuildFromSource)' == 'true'">
98+
<Error Text="The Yarn.Msbuild SDK is currently excluded from SourceBuild. If you are enabling this project for SourceBuild, remove the condition on the Yarn.Msbuild SDK above." />
99+
</Target>
100+
101+
<Import Project="Sdk.targets" Sdk="Yarn.MSBuild" Condition=" '$(DotNetBuildFromSource)' != 'true'" />
102+
96103
</Project>

src/Mvc/test/Mvc.FunctionalTests/ErrorPageTests.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.IO;
6-
using System.Linq;
74
using System.Net;
85
using System.Net.Http;
96
using System.Net.Http.Headers;
107
using System.Text.Encodings.Web;
11-
using System.Threading.Tasks;
128
using Microsoft.AspNetCore.Hosting;
139
using Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation;
1410
using Microsoft.AspNetCore.TestHost;
1511
using Microsoft.AspNetCore.Testing;
1612
using Microsoft.Extensions.DependencyInjection;
1713
using Microsoft.Extensions.Logging;
1814
using Microsoft.Extensions.Logging.Testing;
19-
using Xunit;
2015
using Xunit.Abstractions;
2116

2217
namespace Microsoft.AspNetCore.Mvc.FunctionalTests
2318
{
2419
/// <summary>
2520
/// Functional test to verify the error reporting of Razor compilation by diagnostic middleware.
2621
/// </summary>
27-
public class ErrorPageTests : IClassFixture<MvcTestFixture<ErrorPageMiddlewareWebSite.Startup>>, IDisposable
22+
public class ErrorPageTests : IClassFixture<MvcTestFixture<ErrorPageMiddlewareWebSite.Startup>>
2823
{
2924
private static readonly string PreserveCompilationContextMessage = HtmlEncoder.Default.Encode(
3025
"One or more compilation references may be missing. " +
@@ -189,10 +184,5 @@ public async Task AggregateException_FlattensInnerExceptions()
189184
Assert.Contains(nullReferenceException, content);
190185
Assert.Contains(indexOutOfRangeException, content);
191186
}
192-
193-
public void Dispose()
194-
{
195-
_assemblyTestLog.Dispose();
196-
}
197187
}
198188
}

0 commit comments

Comments
 (0)