Skip to content

Commit 09e9cb2

Browse files
committed
Merge branch 'main' into taparik/playwright
2 parents 2e06f58 + ac52b4d commit 09e9cb2

File tree

1,992 files changed

+19227
-22451
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,992 files changed

+19227
-22451
lines changed

.azure/pipelines/ci.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ variables:
8787
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
8888
# Variables for source indexing afterBuild step and job.
8989
- name: sourceIndexPackageVersion
90-
value: 1.0.1-20210614.1
90+
value: 1.0.1-20221220.2
9191
- name: sourceIndexPackageSource
9292
value: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
9393
- group: source-dot-net stage1 variables
@@ -375,10 +375,10 @@ stages:
375375
${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(parameters.testSourceIndexing, 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
376376
afterBuild:
377377
- task: UseDotNet@2
378-
displayName: Use .NET Core sdk 3.1
378+
displayName: Use .NET Core SDK 6
379379
inputs:
380380
packageType: sdk
381-
version: 3.1.x
381+
version: 6.0.x
382382
installationPath: $(Build.SourcesDirectory)/.dotnet
383383
workingDirectory: $(Build.SourcesDirectory)
384384
- powershell: . $(Build.SourcesDirectory)/activate.ps1;
@@ -783,19 +783,20 @@ stages:
783783
publishOnError: true
784784
includeForks: true
785785

786-
# Source build
787-
- template: /eng/common/templates/job/source-build.yml
788-
parameters:
789-
platform:
790-
name: 'Managed'
791-
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'
792-
buildScript: './eng/build.sh $(_PublishArgs) --no-build-repo-tasks'
793-
skipPublishValidation: true
794-
jobProperties:
795-
timeoutInMinutes: 120
796-
variables:
797-
# Log environment variables in binary logs to ease debugging
798-
MSBUILDLOGALLENVIRONMENTVARIABLES: true
786+
# Source build - skip until https://github.com/dotnet/source-build/issues/3111 is resolved
787+
- ${{ if False }}:
788+
- template: /eng/common/templates/job/source-build.yml
789+
parameters:
790+
platform:
791+
name: 'Managed'
792+
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'
793+
buildScript: './eng/build.sh $(_PublishArgs) --no-build-repo-tasks'
794+
skipPublishValidation: true
795+
jobProperties:
796+
timeoutInMinutes: 120
797+
variables:
798+
# Log environment variables in binary logs to ease debugging
799+
MSBUILDLOGALLENVIRONMENTVARIABLES: true
799800

800801
# Publish to the BAR and perform source indexing. Wait until everything else is done.
801802
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
@@ -881,10 +882,10 @@ stages:
881882
cleanDestinationFolder: true
882883
# Ignore repository's global.json and any existing .NET SDK.
883884
- task: UseDotNet@2
884-
displayName: Use .NET Core sdk 3.1
885+
displayName: Use .NET Core SDK 6
885886
inputs:
886887
packageType: sdk
887-
version: 3.1.x
888+
version: 6.0.x
888889
installationPath: $(Agent.TempDirectory)/.dotnet
889890
workingDirectory: $(Agent.TempDirectory)
890891
- script: $(Agent.TempDirectory)/.dotnet/dotnet tool install UploadIndexStage1

.editorconfig

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@ dotnet_diagnostic.CA1305.severity = warning
9292
# CA1507: Use nameof to express symbol names
9393
dotnet_diagnostic.CA1507.severity = warning
9494

95+
# CA1510: Use ArgumentNullException throw helper
96+
dotnet_diagnostic.CA1510.severity = warning
97+
98+
# CA1511: Use ArgumentException throw helper
99+
dotnet_diagnostic.CA1511.severity = warning
100+
101+
# CA1512: Use ArgumentOutOfRangeException throw helper
102+
dotnet_diagnostic.CA1512.severity = warning
103+
104+
# CA1513: Use ObjectDisposedException throw helper
105+
dotnet_diagnostic.CA1513.severity = warning
106+
95107
# CA1725: Parameter names should match base declaration
96108
dotnet_diagnostic.CA1725.severity = suggestion
97109

@@ -187,6 +199,18 @@ dotnet_diagnostic.CA1852.severity = warning
187199
# CA1854: Prefer the IDictionary.TryGetValue(TKey, out TValue) method
188200
dotnet_diagnostic.CA1854.severity = warning
189201

202+
# CA1855: Prefer 'Clear' over 'Fill'
203+
dotnet_diagnostic.CA1855.severity = warning
204+
205+
# CA1856: Incorrect usage of ConstantExpected attribute
206+
dotnet_diagnostic.CA1856.severity = error
207+
208+
# CA1857: A constant is expected for the parameter
209+
dotnet_diagnostic.CA1857.severity = warning
210+
211+
# CA1858: Use 'StartsWith' instead of 'IndexOf'
212+
dotnet_diagnostic.CA1858.severity = warning
213+
190214
# CA2007: Consider calling ConfigureAwait on the awaited task
191215
dotnet_diagnostic.CA2007.severity = warning
192216

@@ -295,6 +319,14 @@ dotnet_diagnostic.IDE2000.severity = warning
295319
dotnet_diagnostic.CA1018.severity = suggestion
296320
# CA1507: Use nameof to express symbol names
297321
dotnet_diagnostic.CA1507.severity = suggestion
322+
# CA1510: Use ArgumentNullException throw helper
323+
dotnet_diagnostic.CA1510.severity = suggestion
324+
# CA1511: Use ArgumentException throw helper
325+
dotnet_diagnostic.CA1511.severity = suggestion
326+
# CA1512: Use ArgumentOutOfRangeException throw helper
327+
dotnet_diagnostic.CA1512.severity = suggestion
328+
# CA1513: Use ObjectDisposedException throw helper
329+
dotnet_diagnostic.CA1513.severity = suggestion
298330
# CA1802: Use literals where appropriate
299331
dotnet_diagnostic.CA1802.severity = suggestion
300332
# CA1805: Do not initialize unnecessarily
@@ -333,6 +365,14 @@ dotnet_diagnostic.CA1847.severity = suggestion
333365
dotnet_diagnostic.CA1852.severity = suggestion
334366
# CA1854: Prefer the IDictionary.TryGetValue(TKey, out TValue) method
335367
dotnet_diagnostic.CA1854.severity = suggestion
368+
# CA1855: Prefer 'Clear' over 'Fill'
369+
dotnet_diagnostic.CA1855.severity = suggestion
370+
# CA1856: Incorrect usage of ConstantExpected attribute
371+
dotnet_diagnostic.CA1856.severity = suggestion
372+
# CA1857: A constant is expected for the parameter
373+
dotnet_diagnostic.CA1857.severity = suggestion
374+
# CA1858: Use 'StartsWith' instead of 'IndexOf'
375+
dotnet_diagnostic.CA1858.severity = suggestion
336376
# CA2007: Consider calling ConfigureAwait on the awaited task
337377
dotnet_diagnostic.CA2007.severity = suggestion
338378
# CA2008: Do not create tasks without passing a TaskScheduler

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/src/JSInterop/ @dotnet/aspnet-blazor-eng
3636
/src/Middleware/ @tratcher @BrennanConroy
3737
/src/Middleware/**/PublicAPI.*Shipped.txt @dotnet/aspnet-api-review @tratcher @BrennanConroy
38-
/src/Mvc/ @dotnet/aspnet-blazor-eng
38+
/src/Mvc/ @dotnet/minimal-apis
3939
/src/Mvc/Mvc.ApiExplorer @captainsafia @halter73 @brunolins16
4040
/src/Mvc/**/PublicAPI.*Shipped.txt @dotnet/aspnet-api-review @dotnet/aspnet-blazor-eng
4141
/src/OpenApi @captainsafia @dotnet/minimal-apis

.github/dependabot.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,64 @@
11
version: 2
2+
registries:
3+
azure.com:
4+
token: ${{secrets.DEPENDABOT_NPM_TOKEN}}
5+
type: npm-registry
6+
url: https://pkgs.dev.azure.com/
7+
28
updates:
3-
# Keep submodules up to date in 'main'.
4-
- package-ecosystem: "gitsubmodule"
9+
- package-ecosystem: npm
510
directory: "/"
11+
# Perform only security updates of our npm dependencies.
12+
open-pull-requests-limit: 0
13+
registries:
14+
- azure.com
15+
# Schedule should be ignored for security updates.
616
schedule:
7-
# Weekly interval opens PRs on Monday.
8-
interval: "weekly"
9-
allow:
10-
- dependency-type: "all"
11-
commit-message:
12-
prefix: "[main] "
13-
include: scope
14-
labels:
15-
- area-infrastructure
17+
interval: monthly
18+
1619
- package-ecosystem: "github-actions"
1720
directory: "/"
1821
schedule:
19-
# Weekly interval opens PRs on Monday.
22+
day: monday
2023
interval: "weekly"
24+
time: 05:00
25+
timezone: "America/Los_Angeles"
2126
commit-message:
2227
prefix: "[main] "
2328
include: scope
2429
labels:
2530
- area-infrastructure
2631

27-
# Keep submodules up to date in 'release/*' branches. (Unfortunately Dependabot security PRs can't target these.)
28-
# Monthly interval opens PRs on the first of each month.
32+
# Keep submodules up to date in 'main'.
2933
- package-ecosystem: "gitsubmodule"
3034
directory: "/"
3135
schedule:
32-
interval: "monthly"
36+
day: monday
37+
interval: "weekly"
38+
time: 05:00
39+
timezone: "America/Los_Angeles"
3340
allow:
3441
- dependency-type: "all"
3542
commit-message:
36-
prefix: "[release/2.1] "
43+
prefix: "[main] "
3744
include: scope
3845
labels:
3946
- area-infrastructure
40-
target-branch: "release/2.1"
47+
48+
# Keep submodules up to date in 'release/*' branches. (Unfortunately Dependabot security PRs can't target these.)
49+
# Monthly interval opens PRs on the first of each month.
4150
- package-ecosystem: "gitsubmodule"
4251
directory: "/"
4352
schedule:
4453
interval: "monthly"
4554
allow:
4655
- dependency-type: "all"
4756
commit-message:
48-
prefix: "[release/3.1] "
57+
prefix: "[release/2.1] "
4958
include: scope
5059
labels:
5160
- area-infrastructure
52-
target-branch: "release/3.1"
61+
target-branch: "release/2.1"
5362
- package-ecosystem: "gitsubmodule"
5463
directory: "/"
5564
schedule:

0 commit comments

Comments
 (0)