Skip to content

Commit 5db0c95

Browse files
authored
Merge branch 'release/3.1' into merge/release/3.0-to-release/3.1
2 parents 0da2edb + a4af618 commit 5db0c95

File tree

1,339 files changed

+15855
-9627
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,339 files changed

+15855
-9627
lines changed

.azure/pipelines/ci.yml

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ stages:
8383
- name: Code_Check_Logs
8484
path: artifacts/log/
8585
publishOnError: true
86+
includeForks: true
8687

8788
# Build Windows (x64/x86)
8889
- template: jobs/default-build.yml
@@ -163,10 +164,21 @@ stages:
163164
/p:PublishInstallerBaseVersion=true
164165
displayName: Build Installers
165166

167+
# A few files must also go to the VS package feed.
168+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
169+
- task: NuGetCommand@2
170+
displayName: Push Visual Studio packages
171+
inputs:
172+
command: push
173+
packagesToPush: 'artifacts/packages/**/VS.Redist.Common.AspNetCore.*.nupkg'
174+
nuGetFeedType: external
175+
publishFeedCredentials: 'DevDiv - VS package feed'
176+
166177
artifacts:
167178
- name: Windows_Logs
168179
path: artifacts/log/
169180
publishOnError: true
181+
includeForks: true
170182
- name: Windows_Packages
171183
path: artifacts/packages/
172184

@@ -195,6 +207,7 @@ stages:
195207
- name: Windows_arm_Logs
196208
path: artifacts/log/
197209
publishOnError: true
210+
includeForks: true
198211
- name: Windows_arm_Packages
199212
path: artifacts/packages/
200213

@@ -220,6 +233,7 @@ stages:
220233
- name: MacOS_x64_Logs
221234
path: artifacts/log/
222235
publishOnError: true
236+
includeForks: true
223237
- name: MacOS_x64_Packages
224238
path: artifacts/packages/
225239
- template: jobs/codesign-xplat.yml
@@ -280,6 +294,7 @@ stages:
280294
- name: Linux_x64_Logs
281295
path: artifacts/log/
282296
publishOnError: true
297+
includeForks: true
283298
- name: Linux_x64_Packages
284299
path: artifacts/packages/
285300
- template: jobs/codesign-xplat.yml
@@ -309,6 +324,7 @@ stages:
309324
- name: Linux_arm_Logs
310325
path: artifacts/log/
311326
publishOnError: true
327+
includeForks: true
312328
- name: Linux_arm_Packages
313329
path: artifacts/packages/
314330
- template: jobs/codesign-xplat.yml
@@ -338,6 +354,7 @@ stages:
338354
- name: Linux_arm64_Logs
339355
path: artifacts/log/
340356
publishOnError: true
357+
includeForks: true
341358
- name: Linux_arm64_Packages
342359
path: artifacts/packages/
343360
- template: jobs/codesign-xplat.yml
@@ -370,6 +387,7 @@ stages:
370387
- name: Linux_musl_x64_Logs
371388
path: artifacts/log/
372389
publishOnError: true
390+
includeForks: true
373391
- name: Linux_musl_x64_Packages
374392
path: artifacts/packages/
375393
- template: jobs/codesign-xplat.yml
@@ -402,6 +420,7 @@ stages:
402420
- name: Linux_musl_arm64_Logs
403421
path: artifacts/log/
404422
publishOnError: true
423+
includeForks: true
405424
- name: Linux_musl_arm64_Packages
406425
path: artifacts/packages/
407426
- template: jobs/codesign-xplat.yml
@@ -424,13 +443,25 @@ stages:
424443
- powershell: "& ./build.ps1 -CI -NoBuild -Test /p:RunFlakyTests=true"
425444
displayName: Run Flaky Tests
426445
continueOnError: true
446+
- task: PublishTestResults@2
447+
displayName: Publish Flaky Test Results
448+
inputs:
449+
testResultsFormat: 'xUnit'
450+
testResultsFiles: '*.xml'
451+
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Flaky'
427452
artifacts:
453+
- name: Windows_Test_Dumps
454+
path: artifacts/dumps/
455+
publishOnError: true
456+
includeForks: false
428457
- name: Windows_Test_Logs
429458
path: artifacts/log/
430459
publishOnError: true
460+
includeForks: true
431461
- name: Windows_Test_Results
432462
path: artifacts/TestResults/
433463
publishOnError: true
464+
includeForks: true
434465

435466
- template: jobs/default-build.yml
436467
parameters:
@@ -447,12 +478,18 @@ stages:
447478
- script: ./src/ProjectTemplates/build.cmd -ci -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.test.binlog"
448479
displayName: Test Templates
449480
artifacts:
481+
- name: Windows_Test_Templates_Dumps
482+
path: artifacts/dumps/
483+
publishOnError: true
484+
includeForks: false
450485
- name: Windows_Test_Templates_Logs
451486
path: artifacts/log/
452487
publishOnError: true
488+
includeForks: true
453489
- name: Windows_Test_Templates_Results
454490
path: artifacts/TestResults/
455491
publishOnError: true
492+
includeForks: true
456493

457494
- template: jobs/default-build.yml
458495
parameters:
@@ -473,13 +510,21 @@ stages:
473510
- bash: ./build.sh --no-build --ci --test -p:RunFlakyTests=true
474511
displayName: Run Flaky Tests
475512
continueOnError: true
513+
- task: PublishTestResults@2
514+
displayName: Publish Flaky Test Results
515+
inputs:
516+
testResultsFormat: 'xUnit'
517+
testResultsFiles: '*.xml'
518+
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Flaky'
476519
artifacts:
477520
- name: MacOS_Test_Logs
478521
path: artifacts/log/
479522
publishOnError: true
523+
includeForks: true
480524
- name: MacOS_Test_Results
481525
path: artifacts/TestResults/
482526
publishOnError: true
527+
includeForks: true
483528

484529
- template: jobs/default-build.yml
485530
parameters:
@@ -502,13 +547,21 @@ stages:
502547
- bash: ./build.sh --no-build --ci --test -p:RunFlakyTests=true
503548
displayName: Run Flaky Tests
504549
continueOnError: true
550+
- task: PublishTestResults@2
551+
displayName: Publish Flaky Test Results
552+
inputs:
553+
testResultsFormat: 'xUnit'
554+
testResultsFiles: '*.xml'
555+
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)/Flaky'
505556
artifacts:
506557
- name: Linux_Test_Logs
507558
path: artifacts/log/
508559
publishOnError: true
560+
includeForks: true
509561
- name: Linux_Test_Results
510562
path: artifacts/TestResults/
511563
publishOnError: true
564+
includeForks: true
512565

513566
# Source build
514567
- job: Source_Build
@@ -527,17 +580,6 @@ stages:
527580
chmod +x $HOME/bin/jq
528581
echo "##vso[task.prependpath]$HOME/bin"
529582
displayName: Install jq
530-
- task: UseDotNet@2
531-
displayName: 'Use .NET Core sdk'
532-
inputs:
533-
packageType: sdk
534-
# The SDK version selected here is intentionally supposed to use the latest release
535-
# For the purpose of building Linux distros, we can't depend on features of the SDK
536-
# which may not exist in pre-built versions of the SDK
537-
# Pinning to preview 8 since preview 9 has breaking changes
538-
version: 3.0.100
539-
installationPath: $(DotNetCoreSdkDir)
540-
includePreviewVersions: true
541583
- script: ./eng/scripts/ci-source-build.sh --ci --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false
542584
displayName: Run ci-source-build.sh
543585
- task: PublishBuildArtifacts@1

.azure/pipelines/jobs/codesign-xplat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ jobs:
4444
- name: CodeSign_Xplat_${{ parameters.inputName }}_Logs
4545
path: artifacts/log/
4646
publishOnError: true
47+
includeForks: true
4748
- name: ${{ parameters.inputName }}_Packages_Signed
4849
path: artifacts/packages/

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ jobs:
127127
steps:
128128
- checkout: self
129129
clean: true
130+
- ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
131+
- powershell: ./eng/scripts/InstallProcDump.ps1
132+
displayName: Install ProcDump
133+
- powershell: ./eng/scripts/StartDumpCollectionForHangingBuilds.ps1 $(ProcDumpPath)procdump.exe artifacts/dumps/ (Get-Date).AddMinutes(160) dotnet
134+
displayName: Start background dump collection
130135
- ${{ if eq(parameters.installNodeJs, 'true') }}:
131136
- task: NodeTool@0
132137
displayName: Install Node 10.x
@@ -169,6 +174,12 @@ jobs:
169174

170175
- ${{ parameters.afterBuild }}
171176

177+
- ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isTestingJob, true)) }}:
178+
- powershell: ./eng/scripts/FinishDumpCollectionForHangingBuilds.ps1 artifacts/dumps/
179+
displayName: Finish background dump collection
180+
continueOnError: true
181+
condition: always()
182+
172183
- ${{ if eq(parameters.agentOs, 'Windows') }}:
173184
- powershell: eng\scripts\KillProcesses.ps1
174185
displayName: Kill processes

Directory.Build.props

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

5454
<IncludeSymbols>true</IncludeSymbols>
5555

56-
<DefaultNetCoreTargetFramework>netcoreapp$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion)</DefaultNetCoreTargetFramework>
56+
<DefaultNetCoreTargetFramework>netcoreapp3.1</DefaultNetCoreTargetFramework>
5757
</PropertyGroup>
5858

5959
<ItemGroup>

NuGet.config

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
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-core-setup-7d57652" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-core-setup-7d57652f/nuget/v3/index.json" />
7-
<add key="darc-pub-dotnet-corefx-4ac4c03" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-corefx-4ac4c036/nuget/v3/index.json" />
8-
<add key="darc-pub-aspnet-Extensions-0b951c1" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-aspnet-Extensions-0b951c16/nuget/v3/index.json" />
9-
<add key="darc-pub-aspnet-EntityFrameworkCore-b403b17" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-aspnet-EntityFrameworkCore-b403b17b/nuget/v3/index.json" />
10-
<add key="darc-pub-aspnet-AspNetCore-Tooling-4ef35e1" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-aspnet-AspNetCore-Tooling-4ef35e11/nuget/v3/index.json" />
11-
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
125
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
6+
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
137
<add key="aspnet-blazor" value="https://dotnetfeed.blob.core.windows.net/aspnet-blazor/index.json" />
148
<add key="aspnet-extensions" value="https://dotnetfeed.blob.core.windows.net/aspnet-extensions/index.json" />
159
<add key="aspnet-entityframeworkcore" value="https://dotnetfeed.blob.core.windows.net/aspnet-entityframeworkcore/index.json" />

docs/BuildFromSource.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Building ASP.NET Core on Windows requires:
2727
```ps1
2828
PS> ./eng/scripts/InstallJdk.ps1
2929
```
30+
* Chrome - Selenium-based tests require a version of Chrome to be installed. Download and install it from [https://www.google.com/chrome]
3031
3132
### macOS/Linux
3233

eng/Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
<!-- Exclude the benchmarks because they use <PackageReference>. -->
4444
<ProjectToExclude Include="
45+
$(RepoRoot)src\Components\benchmarkapps\**\*.csproj;
4546
$(RepoRoot)src\Mvc\benchmarkapps\**\*.csproj;
4647
$(RepoRoot)src\Servers\Kestrel\perf\PlatformBenchmarks\**\*.csproj;
4748
$(RepoRoot)src\SignalR\perf\benchmarkapps\**\*.csproj;

eng/CodeGen.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
SkipNonexistentProjects="true" />
8686
</Target>
8787

88-
</Project>
88+
</Project>

eng/ProjectReferences.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<ProjectReferenceProvider Include="GetDocument.Insider" ProjectPath="$(RepoRoot)src\Tools\GetDocumentInsider\src\GetDocumentInsider.csproj" />
1616
<ProjectReferenceProvider Include="Microsoft.AspNetCore.SignalR.Specification.Tests" ProjectPath="$(RepoRoot)src\SignalR\server\Specification.Tests\src\Microsoft.AspNetCore.SignalR.Specification.Tests.csproj" />
1717
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Blazor.Build" ProjectPath="$(RepoRoot)src\Components\Blazor\Build\src\Microsoft.AspNetCore.Blazor.Build.csproj" />
18+
<ProjectReferenceProvider Include="Ignitor" ProjectPath="$(RepoRoot)src\Components\Ignitor\src\Ignitor.csproj" />
19+
<ProjectReferenceProvider Include="BlazorServerApp" ProjectPath="$(RepoRoot)src\Components\Samples\BlazorServerApp\BlazorServerApp.csproj" />
1820
<ProjectReferenceProvider Include="Microsoft.AspNetCore" ProjectPath="$(RepoRoot)src\DefaultBuilder\src\Microsoft.AspNetCore.csproj" RefProjectPath="$(RepoRoot)src\DefaultBuilder\ref\Microsoft.AspNetCore.csproj" />
1921
<ProjectReferenceProvider Include="Microsoft.AspNetCore.JsonPatch" ProjectPath="$(RepoRoot)src\Features\JsonPatch\src\Microsoft.AspNetCore.JsonPatch.csproj" RefProjectPath="$(RepoRoot)src\Features\JsonPatch\ref\Microsoft.AspNetCore.JsonPatch.csproj" />
2022
<ProjectReferenceProvider Include="Microsoft.AspNetCore.DataProtection.Abstractions" ProjectPath="$(RepoRoot)src\DataProtection\Abstractions\src\Microsoft.AspNetCore.DataProtection.Abstractions.csproj" RefProjectPath="$(RepoRoot)src\DataProtection\Abstractions\ref\Microsoft.AspNetCore.DataProtection.Abstractions.csproj" />

eng/PublishSymbols.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="RunPublishSymbols">
22
<PropertyGroup>
33
<!-- TFM doesn't matter. These settings are required to make NuGet happy so we can restore required MSBuild packages. -->
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
55
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
66
<ManifestsPath>artifacts\manifests\</ManifestsPath>
77
<DisablePackageReferenceRestrictions>true</DisablePackageReferenceRestrictions>

eng/SharedFramework.External.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
These compilation references are necessary to workaround the mismatch of what is found in the ref pack for NETCore.App and what
108108
is actually present at runtime. See https://github.com/dotnet/corefx/issues/34906
109109
-->
110-
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0' or $(TargetFrameworks.Contains('netcoreapp3.0'))">
110+
<ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' or $(TargetFrameworks.Contains('$(DefaultNetCoreTargetFramework)'))">
111111
<_CompilationOnlyReference Include="Microsoft.Win32.Registry" />
112112
<_CompilationOnlyReference Include="System.Security.Cryptography.Cng" />
113113
<_CompilationOnlyReference Include="System.Security.Principal.Windows" />

0 commit comments

Comments
 (0)