Build: Removes System.Net.Http and System.Text.RegularExpressions package references#5386
Merged
kirankumarkolli merged 2 commits intomasterfrom Oct 2, 2025
Merged
Conversation
Contributor
Author
|
@ananth7592 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
…erences Co-authored-by: ananth7592 <[email protected]>
Copilot
AI
changed the title
[WIP] Remove references to System.Net.Http and System.Text.RegularExpressions
Remove System.Net.Http and System.Text.RegularExpressions package references
Sep 8, 2025
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Pilchie
approved these changes
Sep 23, 2025
aavasthy
approved these changes
Sep 23, 2025
ananth7592
approved these changes
Sep 23, 2025
kirankumarkolli
approved these changes
Oct 2, 2025
This was referenced Oct 18, 2025
This was referenced Dec 22, 2025
This was referenced Dec 29, 2025
This was referenced Jan 13, 2026
Closed
This was referenced Feb 3, 2026
[nuget] Bump Microsoft.Azure.Cosmos from 3.52.0 to 3.57.0
felipementel/DEPLOY.CosmosDBForNoSQL-v1#11
Open
This was referenced Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes explicit package references to
System.Net.HttpandSystem.Text.RegularExpressionsfrom the Microsoft.Azure.Cosmos project to resolve security vulnerability warnings when using NuGet audit mode.Resolves github issue: #5216
Problem
The Microsoft.Azure.Cosmos package was explicitly referencing
System.Net.Http(v4.3.4) andSystem.Text.RegularExpressions(v4.3.1) even though it targets .NET Standard 2.0. According to Microsoft's official guidelines, these packages should not be directly referenced for .NET Standard 2.0 projects because:System.Private.Uri4.3.0) that have known security vulnerabilitiesNuGetAuditMode=allUsers experienced build failures like:
Solution
<PackageReference Include="System.Net.Http" Version="4.3.4" />from Microsoft.Azure.Cosmos.csproj<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />from Microsoft.Azure.Cosmos.csprojDirectContractTests.csto reflect the removalVerification
HttpClientandRegexfunctionality preserved through .NET Standard 2.0 APIsNuGetAuditMode=allandTreatWarningsAsErrors=truepassesThe changes are minimal and surgical - only removing unnecessary package references while maintaining full API compatibility.
Fixes #5216.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.