Skip to content

Commit 65595cb

Browse files
authored
Merge branch 'main' into Wilson7
2 parents 583728e + 84bd0ec commit 65595cb

File tree

572 files changed

+14759
-53191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

572 files changed

+14759
-53191
lines changed

.azure/pipelines/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ trigger:
1212
- internal/release/*
1313

1414
# Run PR validation on all branches
15+
# This doesn't have any path exclusions, even for things like docs, because
16+
# we have it configured in GitHub as a required check, and for it to pass
17+
# it must actually run, even if it's not relevant to a particular change.
1518
pr:
1619
autoCancel: true
1720
branches:

.azure/pipelines/quarantined-pr.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ pr:
2020
- release/*
2121
paths:
2222
exclude:
23+
- .devcontainer/*
2324
- .github/*
2425
- .vscode/*
26+
- docs/*
2527
- '**/*.md'
26-
- CODE-OF-CONDUCT.md
27-
- CONTRIBUTING.md
2828
- LICENSE.TXT
29-
- README.md
30-
- SECURITY.md
3129
- THIRD-PARTY-NOTICES.TXT
3230

3331
schedules:

.config/CredScanSuppressions.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,6 @@
6969
"file": "\\src\\DefaultBuilder\\test\\Microsoft.AspNetCore.FunctionalTests\\testCert.pfx",
7070
"_justification": "Legitimate UT certificate file with private key"
7171
},
72-
{
73-
"file": "\\src\\Identity\\ApiAuthorization.IdentityServer\\test\\current.pfx",
74-
"_justification": "Legitimate UT certificate file with private key"
75-
},
76-
{
77-
"file": "\\src\\Identity\\ApiAuthorization.IdentityServer\\test\\expired.pfx",
78-
"_justification": "Legitimate UT certificate file with private key"
79-
},
80-
{
81-
"file": "\\src\\Identity\\ApiAuthorization.IdentityServer\\test\\future.pfx",
82-
"_justification": "Legitimate UT certificate file with private key"
83-
},
84-
{
85-
"file": "\\src\\Identity\\ApiAuthorization.IdentityServer\\test\\test.pfx",
86-
"_justification": "Legitimate UT certificate file with private key"
87-
},
8872
{
8973
"file": "\\src\\Middleware\\WebSockets\\test\\ConformanceTests\\AutobahnTestApp\\TestResources\\testCert.pfx",
9074
"_justification": "Legitimate UT certificate file with private key"

.github/fabricbot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3461,7 +3461,7 @@
34613461
{
34623462
"name": "addReply",
34633463
"parameters": {
3464-
"comment": "Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.\nTo make sure no breaking changes are introduced, please leave an `/azp run` comment here to rerun the CI pipeline and confirm success before merging the change."
3464+
"comment": "Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.\nTo make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an `/azp run` comment here (requires commit rights), or by simply closing and reopening."
34653465
}
34663466
},
34673467
{

.github/workflows/markdownlint.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,20 @@ name: Markdownlint
33
permissions:
44
contents: read
55

6+
# run even on changes without markdown changes, so that we can
7+
# make it in GitHub a required check for PR's
68
on:
79
pull_request:
8-
paths:
9-
- "**/*.md"
10-
- ".markdownlint.json"
11-
- ".github/workflows/markdownlint.yml"
12-
- ".github/workflows/markdownlint-problem-matcher.json"
1310

1411
jobs:
1512
lint:
1613

1714
runs-on: ubuntu-latest
1815

1916
steps:
20-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
2118
- name: Use Node.js
22-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v3
2320
with:
2421
node-version: 16.x
2522
- name: Run Markdownlint

.gitmodules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@
66
path = src/submodules/MessagePack-CSharp
77
url = https://github.com/aspnet/MessagePack-CSharp.git
88
branch = master
9-
[submodule "src/submodules/spa-templates"]
10-
path = src/submodules/spa-templates
11-
url = https://github.com/dotnet/spa-templates.git
12-
branch = main

AspNetCore.sln

Lines changed: 1 addition & 140 deletions
Large diffs are not rendered by default.

Directory.Build.props

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

127127
<!-- don't warn about unnecessary trim warning suppressions. can be removed with preview 6. -->
128128
<NoWarn>$(NoWarn);IL2121</NoWarn>
129+
130+
<!-- // Temporary diagnostic code from https://github.com/dotnet/extensions/pull/4130 for metrics APIs used in test. -->
131+
<NoWarn>$(NoWarn);TBD</NoWarn>
129132
</PropertyGroup>
130133

131134
<!-- Source code settings -->

docs/UpdatingMajorVersionAndTFM.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ Typically, we will update the Major Version before updating the TFM. This is bec
1717
4. Change `PreReleaseBrandingLabel` to `Alpha $(PreReleaseVersionIteration)`.
1818
* In [src/Framework/test/TestData.cs](/src/Framework/test/TestData.cs), update `ListedTargetingPackAssemblies` by incrementing the AssemblyVersion of all aspnetcore assemblies by 1 major version. Once dotnet/runtime updates their AssemblyVersions, we also need to update those in this file. They typically make that change at the same time as their TFM update, but we change our AssemblyVersions as soon as we update branding.
1919
* Add entries to [NuGet.config](/NuGet.config) for the new Major Version's feed. This just means copying the current feeds (e.g. `dotnet8` and `dotnet8-transport`) and adding entries for the new feeds (`dotnet9` and `dotnet9-transport`). Make an effort to remove old feeds here at the same time.
20-
* In [src/ProjectTemplates/Shared/TemplatePackageInstaller.cs](/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs), add entries to `_templatePackages` for `Microsoft.DotNet.Web.ProjectTemplates` and `Microsoft.DotNet.Web.Spa.ProjectTemplates` matching the new version.
20+
* In [src/ProjectTemplates/Shared/TemplatePackageInstaller.cs](/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs), add an entry to `_templatePackages` for `Microsoft.DotNet.Web.ProjectTemplates` matching the new version.
2121
* In [eng/targets/CSharp.Common.props](/eng/targets/CSharp.Common.props) for the previous release branch, modify the `<LangVersion>` to be a hardcoded version instead of `preview`. (e.g. If main is being updated to 8.0.0 modify the `<LangVersion>` in the release/7.0 branch). See https://learn.microsoft.com/dotnet/csharp/language-reference/configure-language-version#defaults to find what language version to use.
2222
* Mark APIs from the previous release as Shipped by running `.\eng\scripts\mark-shipped.cmd`. **Note that it's best to do this as early as possible after the API surface is finalized from the previous release** - make sure to be careful that any new API in `main` that isn't shipped as part of the previous release, stays in `PublicAPI.Unshipped.txt` files.
2323
* One way to ensure this is to check out the release branch shipping the previous release (**after API surface area has been finalized**), run `.\eng\scripts\mark-shipped.cmd` there, copy over all of the `PublicAPI.Unshipped.txt` and `PublicAPI.Shipped.txt` files into a new branch based off of `main`, and build the repo. Any failures there will tell you whether or not there are new APIs in main that need to be put back into the `PublicAPI.Unshipped.txt` files.
2424
* The result of `.\eng\scripts\mark-shipped.cmd` should be checked in to the release branch as well, as part of the RTM release.
25+
* Update `.\eng\Baseline.xml` to reflect the set of RTM packages that were just shipped. Then, `dotnet run` `.\eng\tools\BaselineGenerator\BaselineGenerator.csproj`, which will update `.\eng\Baseline.Designer.props`. If RTM hasn't shipped yet, do this in a separate PR once it has.
26+
* Update `.\eng\PlatformManifest.txt` and `.\eng\PackageOverrides.txt`. Download the just released RTM version of the `Microsoft.AspNetCore.App.Ref` package, and copy over the files from the `data` folder. This can be done in the same PR as the one updating `.\eng\Baseline.xml` and `.\eng\Baseline.Designer.props` (see https://github.com/dotnet/aspnetcore/pull/49269).
2527

2628
### Validation
2729

@@ -43,20 +45,14 @@ Once dotnet/runtime has updated their TFM, we update ours in the dependency upda
4345
2. Add entries in [eng/Versions.props](/eng/Versions.props) similar to [these](https://github.com/dotnet/aspnetcore/blob/216c92b78bce31d5e81a70b589707ec2ae5ab21a/eng/Versions.props#L224-L226) - the version should be from the latest released build of .Net.
4446
3. Add entries in [eng/Dependencies.props](/eng/Dependencies.props) similar to [these](https://github.com/dotnet/aspnetcore/blob/a47c0a58d7002b9a530c67532366b9db96d73cc6/eng/Dependencies.props#L119-L120).
4547
* Update AssemblyVersions for dotnet/runtime assemblies in [src/Framework/test/TestData.cs](/src/Framework/test/TestData.cs).
46-
* Update dotnet/spa-templates
47-
1. Create a `release/{n}.0` branch in dotnet/spa-template based off of `main`, where `n` is the MajorVersion we are updating from (not the one we are updating to).
48-
2. Create a PR like [this one](https://github.com/dotnet/aspnetcore/pull/36932) updating the current release branch in `aspnetcore` to reference the new release branch you just created in dotnet/spa-templates.
49-
3. Create a PR like [this one](https://github.com/dotnet/spa-templates/pull/21) updating the branding & TFM in the `main` branch of dotnet/spa-templates.
50-
* Do not merge this until the PR from the previous step is merged.
5148
* Update template precedence
52-
1. Create & merge a PR like [this one](https://github.com/dotnet/spa-templates/pull/105) in dotnet/spa-templates updating `precedence` and `identity` elements in all template.json files, as well as replacing any references to the previous TFM with the new on in templatestrings.json files.
49+
1. Create a PR like [this one](https://github.com/dotnet/aspnetcore/pull/39783) in dotnet/aspnetcore that updates the `precedence`, `identity`, and (if it exists) `thirdPartyNotices` elements in all template.json files.
50+
* Make sure to update _all_ template.json files, including project templates and item templates.
5351
* Going forward, Precedence values should be (9000 + (Major Version) * 100) for 8.0 and 9.0, and (Major Version \* 1000) after that.
5452
* This means 8.0's Precedence should be 9800, 9.0's should be 9900, 10.0's should be 10000, 11.0's should be 11000, and so on.
5553
* If we need to release a Minor version of any of these, use the first zero digit after the Major version to represent that (e.g. 9810 for 8.1, 10100 for 10.1).
56-
2. Create a PR like [this one](https://github.com/dotnet/aspnetcore/pull/39783) in dotnet/aspnetcore that updates the spa-templates submodule, and updates the `precedence`, `identity`, and (if it exists) `thirdPartyNotices` elements in all template.json files.
57-
* Make sure to update _all_ template.json files, including project templates and item templates.
58-
* Use the same precedence scheme as above.
59-
3. Make sure the new aka.ms link you're referencing in `thirdPartyNotices` exists.
54+
55+
2. Make sure the new aka.ms link you're referencing in `thirdPartyNotices` exists.
6056
* In [src/Framework/AspNetCoreAnalyzers/test/Verifiers/CSharpRouteHandlerCodeFixVerifier.cs](/src/Framework/AspNetCoreAnalyzers/test/Verifiers/CSharpRouteHandlerCodeFixVerifier.cs), update the references to `ReferenceAssemblies.Net.Netx0` with the latest version.
6157

6258
### Validation

0 commit comments

Comments
 (0)