Skip to content

Commit 9a257b4

Browse files
committed
Merge in 'release/6.0' changes
2 parents fa2aafe + b3dbb14 commit 9a257b4

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

.azure/pipelines/jobs/default-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
# See https://github.com/dotnet/arcade/blob/master/Documentation/ChoosingAMachinePool.md
9595
pool:
9696
${{ if eq(parameters.agentOs, 'macOS') }}:
97-
vmImage: macOS-10.15
97+
vmImage: macOS-11
9898
${{ if eq(parameters.agentOs, 'Linux') }}:
9999
${{ if and(eq(parameters.useHostedUbuntu, true), or(ne(variables['System.TeamProject'], 'internal'), in(variables['Build.Reason'], 'Manual', 'PullRequest', 'Schedule'))) }}:
100100
vmImage: ubuntu-18.04
@@ -151,8 +151,8 @@ jobs:
151151
- script: df -h
152152
displayName: Disk size
153153
- ${{ if eq(parameters.agentOs, 'macOS') }}:
154-
- script: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
155-
displayName: Use XCode 12.2
154+
- script: sudo xcode-select -s /Applications/Xcode_12.5.1.app/Contents/Developer
155+
displayName: Use XCode 12.5.1
156156
- checkout: self
157157
clean: true
158158
- ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:

eng/Versions.props

Lines changed: 2 additions & 2 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>8</AspNetCorePatchVersion>
12-
<ValidateBaseline>true</ValidateBaseline>
11+
<AspNetCorePatchVersion>9</AspNetCorePatchVersion>
12+
<ValidateBaseline>false</ValidateBaseline>
1313
<!--
1414
When StabilizePackageVersion is set to 'true', this branch will produce stable outputs for 'Shipping' packages
1515
-->

src/DefaultBuilder/src/WebApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed class WebApplication : IHost, IApplicationBuilder, IEndpointRouteB
2727
internal WebApplication(IHost host)
2828
{
2929
_host = host;
30-
ApplicationBuilder = new ApplicationBuilder(host.Services);
30+
ApplicationBuilder = new ApplicationBuilder(host.Services, ServerFeatures);
3131
Logger = host.Services.GetRequiredService<ILoggerFactory>().CreateLogger(Environment.ApplicationName);
3232

3333
Properties[GlobalEndpointRouteBuilderKey] = this;

src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebApplicationTests.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ namespace Microsoft.AspNetCore.Tests
3131
{
3232
public class WebApplicationTests
3333
{
34+
[Fact]
35+
public async Task WebApplicationBuilder_New()
36+
{
37+
var builder = WebApplication.CreateBuilder(new string[] { "--urls", "http://localhost:5001" });
38+
39+
await using var app = builder.Build();
40+
var newApp = (app as IApplicationBuilder).New();
41+
Assert.NotNull(newApp.ServerFeatures);
42+
}
43+
3444
[Fact]
3545
public async Task WebApplicationBuilderConfiguration_IncludesCommandLineArguments()
3646
{
@@ -1696,13 +1706,13 @@ public void EmptyAppConfiguration()
16961706
createdDirectory = true;
16971707
Directory.CreateDirectory(wwwroot);
16981708
}
1699-
1709+
17001710
try
17011711
{
17021712
var builder = WebApplication.CreateBuilder();
1703-
1713+
17041714
builder.WebHost.ConfigureAppConfiguration((ctx, config) => { });
1705-
1715+
17061716
using var app = builder.Build();
17071717
var hostEnv = app.Services.GetRequiredService<Hosting.IWebHostEnvironment>();
17081718
Assert.Equal(wwwroot, hostEnv.WebRootPath);

src/HttpClientFactory/Polly/src/PolicyHttpMessageHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ protected virtual async Task<HttpResponseMessage> SendCoreAsync(HttpRequestMessa
167167
disposable.Dispose();
168168
}
169169

170-
var result = await base.SendAsync(request, cancellationToken);
170+
var result = await base.SendAsync(request, cancellationToken).ConfigureAwait(false);
171171

172172
request.Properties[PriorResponseKey] = result;
173173

0 commit comments

Comments
 (0)