Skip to content
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0ff0ebe
Remove project names (#4532)
sebastienros Oct 9, 2023
a959ae4
Layer enrichment & redaction on top of HttpLogging (#4330)
Tratcher Oct 9, 2023
2bd9495
Documentation transport package (#4254)
carlossanlop Oct 9, 2023
f67c147
[release/8.0] Update SDK (#4543)
MackinnonBuck Oct 10, 2023
a39a5d6
Fix file name; (#4541)
xakep139 Oct 10, 2023
239e599
Add missing dash in build docs (#4549)
sebastienros Oct 10, 2023
b271fee
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Oct 10, 2023
4d308e5
Document MakeApiBaselines script (#4526)
sebastienros Oct 11, 2023
86356a8
HeaderParsing README (#4528)
sebastienros Oct 11, 2023
4e850f2
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Oct 11, 2023
91a4d41
Merge remote-tracking branch 'remote/main' into merge/release/8.0-to-…
RussKie Oct 12, 2023
fbe530f
Joperezr/merge rc2 changes (#4555)
joperezr Oct 12, 2023
3836ab1
Fix ObjectPoolServiceCollectionExtensions namespace (#4552)
sebastienros Oct 12, 2023
5e143e3
Fix FakeTimeProvider namespace, add readme (#4544)
Tratcher Oct 12, 2023
61a28be
Add Diagnostics.Middleware readme (#4534)
Tratcher Oct 12, 2023
55b2044
Fix [EnumStrings] source-gen bug with global namespaces (#4563)
xakep139 Oct 13, 2023
00c494a
[release/8.0] Removing the XXHash3Redactor (#4564)
github-actions[bot] Oct 13, 2023
a57ac02
Build docs transport package in CI (#4562)
carlossanlop Oct 15, 2023
53171ca
Add try catch block in Enrich method for RequestHeadersLogEnricher (#…
tekian Oct 16, 2023
2fe3f6e
Update dependencies from https://github.com/dotnet/arcade build 20231…
dotnet-maestro[bot] Oct 16, 2023
3807091
Add comments around privacy-sensitive info (#4559)
geeknoid Oct 16, 2023
abb0301
Fixing Package imports for projects targeting net6.0 or net7.0 (#4573)
joperezr Oct 16, 2023
b2f5960
Correct CoC
RussKie Oct 17, 2023
9ddc656
Merge branch 'merge/release/8.0-to-main' of https://github.com/dotnet…
xakep139 Oct 17, 2023
0409f97
remove leftover file
xakep139 Oct 17, 2023
352af54
Merge remote-tracking branch 'origin/release/8.0'
Oct 17, 2023
ce4ada6
Merge branch 'merge/release/8.0-to-main' of https://github.com/dotnet…
Oct 17, 2023
7d8c644
Delete src/Libraries/Microsoft.AspNetCore.Diagnostics.Middleware/Logg…
Tratcher Oct 17, 2023
aed8432
Update README.md
RussKie Oct 17, 2023
d83193c
Update sdk, runtimes
Tratcher Oct 18, 2023
db3cca6
Merge branch 'main' into merge/release/8.0-to-main
Tratcher Oct 20, 2023
7ee92d8
Update SDK, fix warnings
Tratcher Oct 23, 2023
1f0c77f
Apply suggestions from code review
Tratcher Oct 27, 2023
1df0ee3
Merge branch 'main' into merge/release/8.0-to-main
Tratcher Nov 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spelling_exclusion_path = .\eng\spellchecking_exclusions.dic

file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.

[*.{appxmanifest,axml,build,config,csproj,dbml,discomap,dtd,json,jsproj,lsproj,njsproj,nuspec,proj,props,resjson,resw,resx,StyleCop,targets,tasks,vbproj,yml,xml,xsd}]
[*.{appxmanifest,axml,build,config,proj,csproj,dbml,discomap,dtd,json,jsproj,lsproj,njsproj,nuspec,proj,props,resjson,resw,resx,StyleCop,targets,tasks,vbproj,yml,xml,xsd}]
indent_style = space
indent_size = 2
tab_width = 2
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<PropertyGroup>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<LangVersion>preview</LangVersion>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<NoWarn>$(NoWarn);AD0001</NoWarn>

<!-- Experimental warnings are for customers, not for this repo -->
<NoWarn>$(NoWarn);EXTEXP0001;EXTEXP0002;EXTEXP0003;EXTEXP0004;EXTEXP0005;EXTEXP0006;EXTEXP0007;EXTEXP0008;EXTEXP0009;EXTEXP0010;EXTEXP0011;EXTEXP0012</NoWarn>
<NoWarn>$(NoWarn);EXTEXP0001;EXTEXP0002;EXTEXP0003;EXTEXP0004;EXTEXP0005;EXTEXP0006;EXTEXP0007;EXTEXP0008;EXTEXP0009;EXTEXP0010;EXTEXP0011;EXTEXP0012;EXTEXP0013</NoWarn>

<!-- NU5104: A stable release of a package should not have a prerelease dependency -->
<NoWarn>$(NoWarn);NU5104</NoWarn>
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ This project has adopted the code of conduct defined by the [Contributor Covenan

General .NET OSS discussions: [.NET Foundation Discussions](https://github.com/dotnet-foundation/Home/discussions)

## Code of Conduct

This project uses the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct) to define expected conduct in our community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer at [email protected].

## License

.NET (including the runtime repo) is licensed under the [MIT](LICENSE.TXT) license.
3 changes: 2 additions & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ This sets up necessary environmental variables and opens the repository in VS Co
* Windows Forms uses Visual Studio MSBuild but for certain features we require the latest MSBuild from .NET Core/.NET SDK. If you are on an official version of [Visual Studio][VS-download] (i.e. not a Preview version), then you may need to enable previews for .NET Core/.NET SDKs in VS.
* you can do this in VS under Tools->Options->Environment->Preview Features->Use previews of the .Net Core SDK (Requires restart)
* When restoring packages, if you get the following message: "The SSL connection could not be established, see inner exception. Unable to read data from the transport connection", try disabling IPv6 on your network adapter.

* When the public API surface is updated, you need to update the API baselines manifest files for the impacted assemblies. [Here is an example](https://github.com/dotnet/extensions/blob/3e6ac0735cb62d4c8b63e131d956397a87ea26f7/src/Libraries/Microsoft.Extensions.AsyncState/Microsoft.Extensions.AsyncState.json) for the `Microsoft.Extensions.AsyncState` project. To update the manifest of all the local assemblies, invoke the script `./scripts/MakeApiBaselines.ps1`.
```
---

1. **"Solution"** means the collections of projects specified in `eng/build.proj` or an actual "sln" file at the root of the repository that represents the generated "filtered" solution (e.g., `SDK.sln`).
Expand Down
1 change: 1 addition & 0 deletions docs/list-of-diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ if desired.
| `EXTEXP0010` | Object pool experiments |
| `EXTEXP0011` | Document database experiments |
| `EXTEXP0012` | Auto-activation experiments |
| `EXTEXP0013` | HttpLogging middleware experiments |
5 changes: 5 additions & 0 deletions eng/MSBuild/Packaging.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<IsPackable>true</IsPackable>
</PropertyGroup>

<PropertyGroup>
<!-- Similar to https://github.com/dotnet/arcade/blob/main/src/Microsoft.DotNet.Arcade.Sdk/tools/RepoLayout.props#L48 -->
<SrcLibrariesDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'src', 'Libraries'))</SrcLibrariesDir>
</PropertyGroup>

<!-- strong name signing control -->
<PropertyGroup Condition="'$(SignArtifacts)' == 'true' ">
<DelaySign>true</DelaySign>
Expand Down
2 changes: 1 addition & 1 deletion eng/MSBuild/ProjectStaging.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<!-- Produce errors if we don't have all the right properties defined -->
<Target Name="_CheckPropsExist" Condition="'$(Stage)' != ''" BeforeTargets="Build">
<Target Name="_CheckPropsExist" Condition="'$(Stage)' != '' and $(Stage) != 'transport'" BeforeTargets="Build">
<Error Condition="'$(Stage)' != 'dev' AND '$(Stage)' != 'normal' AND '$(Stage)' != 'obsolete'" Text="Stage property must be dev|normal|obsolete" />
<Error Condition="'$(Description)' == ''" Text="Missing Description property." />
<Error Condition="'$(Workstream)' == ''" Text="Missing Workstream property." />
Expand Down
3 changes: 2 additions & 1 deletion eng/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<!-- We recursively add all of the test projects -->
<_ProjectsToBuild Include="$(MSBuildThisFileDirectory)..\test\**\*.csproj" />
<_ProjectsToBuild Include="$(MSBuildThisFileDirectory)..\bench\**\*.csproj" />

<!-- Additionally, include the transport project that is not defined as a csproj -->
<_ProjectsToBuild Include="$(MSBuildThisFileDirectory)..\src\Packages\Microsoft.Internal.Extensions.DotNetApiDocs.Transport\Microsoft.Internal.Extensions.DotNetApiDocs.Transport.proj" />
<!-- Add all the projects we want to build as project references, so the traversal SDK can build them -->
<ProjectReference Include="@(_ProjectsToBuild)" />
</ItemGroup>
Expand Down
14 changes: 12 additions & 2 deletions eng/pipelines/templates/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ steps:
# Write-Host 'isWindows: ${{ parameters.isWindows }}'
# Write-Host 'skipTests: ${{ parameters.skipTests }}'
# Write-Host 'skipQualityGates: ${{ parameters.skipQualityGates }}'
# Get-ChildItem env:* | Sort-Object Name
# Get-ChildItem env:* | Sort-Object Name
# displayName: Debug

- pwsh: |
Expand Down Expand Up @@ -94,6 +94,16 @@ steps:
ArtifactName: CodeCoverageResults

- ${{ if eq(parameters.isWindows, 'true') }}:
- script: ${{ parameters.buildScript }}
-projects $(Build.SourcesDirectory)/src/Packages/Microsoft.Internal.Extensions.DotNetApiDocs.Transport/Microsoft.Internal.Extensions.DotNetApiDocs.Transport.proj
-restore -build
-pack
-publish $(_PublishArgs)
-configuration ${{ parameters.buildConfig }}
/bl:${{ parameters.repoLogPath }}/transport.binlog
$(_OfficialBuildIdArgs)
displayName: Build and publish docs transport package

- script: ${{ parameters.buildScript }}
-pack
-sign $(_SignArgs)
Expand All @@ -103,4 +113,4 @@ steps:
/bl:${{ parameters.repoLogPath }}/pack.binlog
/p:Restore=false /p:Build=false
$(_OfficialBuildIdArgs)
displayName: Pack, Sign, and Publish
displayName: Pack, sign, and publish
10 changes: 5 additions & 5 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"sdk": {
"version": "9.0.100-alpha.1.23504.14"
"version": "9.0.100-alpha.1.23523.1"
},
"tools": {
"dotnet": "9.0.100-alpha.1.23504.14",
"dotnet": "9.0.100-alpha.1.23523.1",
"runtimes": {
"dotnet/x64": [
"8.0.0-rtm.23475.7",
"8.0.0-rtm.23516.15",
"$(MicrosoftNETCoreAppRuntimewinx64Version)"
],
"aspnetcore/x64": [
"8.0.0-rtm.23475.5",
"8.0.0-rtm.23517.6",
"$(MicrosoftAspNetCoreAppRuntimewinx64Version)"
]
}
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "3.5.0",
"Microsoft.Build.NoTargets": "3.7.0",
"Microsoft.Build.Traversal": "3.2.0",
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.23510.4",
"Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.23510.4"
Expand Down
6 changes: 6 additions & 0 deletions scripts/MakeApiBaselines.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
Creates API baseline files representing the current API surface exposed by this repo.
#>

if ($PSVersionTable.PSVersion.Major -lt 6) {
Write-Host "PowerShell 6.0 or greater is required to run this script. See https://aka.ms/install-powershell."
Write-Host "Current version:" $PSVersionTable.PSVersion.ToString()
exit
}

$Project = $PSScriptRoot + "/../eng/Tools/ApiChief/ApiChief.csproj"
$Command = $PSScriptRoot + "/../artifacts/bin/ApiChief/Debug/net8.0/ApiChief.exe"

Expand Down
5 changes: 2 additions & 3 deletions scripts/SlngenReferencing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

<#
.SYNOPSIS
Create solution file that contains all packages referencing mentioned keywords.
Creates a solution file that contains all the packages referencing specific keywords.
.DESCRIPTION
This script will help you when changing public API of the package and would like to adjust all internal R9 usages.
It will generate a solution file with all packages that references a project matching given keywords.
This script will generate a solution file with all the packages that reference a project matching given keywords.
.EXAMPLE
PS> .\SlngenReferencing.ps1 AsyncState
#>
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<ErrorLog>$(MSBuildProjectFullPath).$([System.Guid]::NewGuid().ToString().Substring(0,8)).sarif</ErrorLog>
</PropertyGroup>

<PropertyGroup>
<PropertyGroup Condition=" '$(IsPackable)' == 'true' and '$(IsShipping)' == 'true' ">
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Condition="'$(IsPackable)' == 'true'" Include="README.md" Pack="true" PackagePath="\" />
<None Condition=" '$(IsPackable)' == 'true' and '$(IsShipping)' == 'true' " Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup Condition="'$(RunRoslynSdlAnalyzers)' == 'True'">
Expand Down
7 changes: 6 additions & 1 deletion src/Generators/Microsoft.Gen.EnumStrings/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,17 @@ private void ParseAttributeList(INamedTypeSymbol? implicitEnumType, IEnumerable<
members = members.Distinct(new EntryComparer());
}

var resultingNamespace = nspace ??
(enumType.ContainingNamespace.IsGlobalNamespace
? string.Empty
: enumType.ContainingNamespace.ToString());

results.Add(new ToStringMethod(
enumType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat),
members.Select(kvp => kvp.Key).ToList(),
members.Select(kvp => kvp.Value).ToList(),
flags,
nspace ?? enumType.ContainingNamespace.ToString(),
resultingNamespace,
className ?? enumType.Name + "Extensions",
methodName ?? "ToInvariantString",
classModifiers ?? "internal static",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using Microsoft.Extensions.Logging;

namespace Microsoft.AspNetCore.Diagnostics;

internal static partial class Log
{
[LoggerMessage(0, LogLevel.Warning, "Enricher failed: {Enricher}.")]
internal static partial void EnricherFailed(this ILogger logger, Exception exception, string enricher);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#if NET8_0_OR_GREATER

using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -19,17 +21,10 @@ public HeaderReader(IDictionary<string, DataClassification> headersToLog, IRedac
{
_redactorProvider = redactorProvider;

_headers = headersToLog.Count == 0
? Array.Empty<KeyValuePair<string, DataClassification>>()
: headersToLog.ToArray();
_headers = headersToLog.Count == 0 ? [] : headersToLog.ToArray();
}

/// <summary>
/// Reads headers and applies filtering (if required).
/// </summary>
/// <param name="headers">A collection of headers to be read from.</param>
/// <param name="listToFill">A list to be filled with headers.</param>
public void Read(IHeaderDictionary headers, List<KeyValuePair<string, string>> listToFill)
public void Read(IHeaderDictionary headers, IList<KeyValuePair<string, object?>> logContext, string prefix)
{
if (headers.Count == 0)
{
Expand All @@ -42,8 +37,9 @@ public void Read(IHeaderDictionary headers, List<KeyValuePair<string, string>> l
{
var provider = _redactorProvider.GetRedactor(header.Value);
var redacted = provider.Redact(headerValue.ToString());
listToFill.Add(new(header.Key, redacted));
logContext.Add(new(prefix + header.Key, redacted));
}
}
}
}
#endif

This file was deleted.

This file was deleted.

Loading