Skip to content

Add netstandard2.0 target to Microsoft.Extensions.Compliance.Redaction - #7851

Merged
evgenyfedorov2 merged 2 commits into
dotnet:mainfrom
evgenyfedorov2:evgenyfedorov2-compliance-redaction-netstandard
Oct 16, 2026
Merged

evgenyfedorov2 merged 2 commits into
dotnet:mainfrom
evgenyfedorov2:evgenyfedorov2-compliance-redaction-netstandard

Conversation

@evgenyfedorov2

@evgenyfedorov2 evgenyfedorov2 commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Fixes #7850

Adds netstandard2.0 to Microsoft.Extensions.Compliance.Redaction, same as #6218 did for Telemetry. No code changes needed.

Verified that a netstandard2.0 project referencing the packed package resolves lib/netstandard2.0 and builds without NU1701 or CS1705.

Microsoft Reviewers: Open in CodeFlow

Fixes dotnet#7850

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 10:36
@evgenyfedorov2
evgenyfedorov2 requested a review from a team as a code owner October 16, 2026 10:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused target addition matches existing compatibility paths and dependencies, with no blocking issues identified.

0 open findings

What changed in this PR

Adds .NET Standard 2.0 support to the redaction package, addressing the compatibility issue in #7850.

Changes:

  • Adds netstandard2.0 while retaining existing .NET and .NET Framework targets.
  • Leaves implementation code unchanged.
File Description
src/​Libraries/​Microsoft.Extensions.Compliance.Redaction/​Microsoft.Extensions.Compliance.Redaction.csproj Adds the netstandard2.0 target.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@dotnet-comment-bot

Copy link
Copy Markdown
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Diagnostics.Testing Line 99 98.65 🔻
Microsoft.Extensions.Telemetry Line 93 92.75 🔻
Microsoft.Extensions.AI Line 89 88.4 🔻
Microsoft.Extensions.AI.OpenAI Line 75 68.24 🔻
Microsoft.Extensions.AI.OpenAI Branch 75 57.54 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Line 75 4.46 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Branch 75 0 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Line 99 96.07 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Branch 99 92.76 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes Line 99 97.73 🔻
Microsoft.Extensions.ServiceDiscovery.Dns Line 75 71.61 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Line 75 42.11 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Branch 75 42.86 🔻
Microsoft.Extensions.ServiceDiscovery Line 75 69.03 🔻
Microsoft.Extensions.ServiceDiscovery Branch 75 71.43 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Line 75 73.85 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Branch 75 70 🔻
Microsoft.Extensions.VectorData.Abstractions Line 75 37.39 🔻
Microsoft.Extensions.VectorData.Abstractions Branch 75 22.73 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.Http.Diagnostics 94 95
Microsoft.Gen.BuildMetadata 97 100
Microsoft.Gen.MetadataExtractor 57 73
Microsoft.Gen.MetricsReports 67 69
Microsoft.Extensions.AI.Abstractions 82 86
Microsoft.Extensions.AI.Evaluation.NLP 0 78
Microsoft.Extensions.Caching.Hybrid 82 85
Microsoft.Extensions.DataIngestion 75 89
Microsoft.Extensions.DataIngestion.Markdig 75 90
Microsoft.Extensions.Http.Resilience 97 100

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1638149&view=codecoverage-tab

@evgenyfedorov2
evgenyfedorov2 merged commit 42a0f35 into dotnet:main Oct 16, 2026
5 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.Extensions.Compliance.Redaction doesn't support netstandard2.0

4 participants