Merged
Conversation
* Introduce C++ SDK component type
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1626 +/- ##
=====================================
Coverage 90.2% 90.2%
=====================================
Files 437 439 +2
Lines 37801 37875 +74
Branches 2324 2331 +7
=====================================
+ Hits 34121 34195 +74
Misses 3203 3203
Partials 477 477 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR introduces a new CppSdk component type to support C++ SDK version detection. This is an experimental feature to expand Component Detection's capability to detect C++ SDK dependencies.
Changes:
- Added
ComponentType.CppSdkenum value (20) to the component type enumeration - Implemented
CppSdkComponentclass following established TypedComponent patterns with Name and Version properties - Registered the new component type in
TypedComponentMappingfor serialization support - Added comprehensive unit tests for
CppSdkComponentcovering constructor validation and PackageUrl generation - Added serialization/deserialization test in
TypedComponentSerializationTests
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Microsoft.ComponentDetection.Contracts/TypedComponent/ComponentType.cs | Adds CppSdk enum value (20) to the ComponentType enumeration |
| src/Microsoft.ComponentDetection.Contracts/TypedComponent/CppSdkComponent.cs | Implements new CppSdkComponent class with Name/Version properties and PackageUrl generation using "generic" type with "cppsdk" qualifier |
| src/Microsoft.ComponentDetection.Contracts/BcdeModels/TypedComponentMapping.cs | Registers CppSdkComponent in the type discriminator mapping for serialization support |
| test/Microsoft.ComponentDetection.Contracts.Tests/CppSdkComponentTests.cs | Adds comprehensive unit tests for constructor validation, property initialization, and PackageUrl format |
| test/Microsoft.ComponentDetection.Contracts.Tests/TypedComponentSerializationTests.cs | Adds serialization/deserialization test for CppSdkComponent |
zhenghao104
approved these changes
Feb 3, 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.
We are experimenting with a new component type for C++ SDK version detection.