Skip to content

Declare PlatformServices as non-packable - #10728

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/explicit-platformservices-packability
Aug 25, 2026
Merged

Declare PlatformServices as non-packable#10728
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/explicit-platformservices-packability

Conversation

@Evangelink

Copy link
Copy Markdown
Member

MSTestAdapter.PlatformServices is bundled into MSTest.TestAdapter rather than published as a standalone package, but its project relied on the SDK's implicit IsPackable=true default.

Explicitly set IsPackable=false and document the embedding relationship so the project's packaging intent is clear and direct pack invocations do not attempt to produce a package.

Fixes #10709

Document that MSTest.TestAdapter bundles the assembly and prevent standalone package generation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 05d06302-12f7-4db0-a3a7-8923510820f9
Copilot AI balanced review requested due to automatic review settings August 25, 2026 12:33
@Evangelink Amaury Levé (Evangelink) added the state/needs-review Awaiting review from the team. label Aug 25, 2026
@Evangelink
Amaury Levé (Evangelink) enabled auto-merge (squash) August 25, 2026 12:34

@github-actions github-actions Bot 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.

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection results could not be parsed.

Review the workflow run logs for details.

Note

🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.

Review Summary

Verdict: ✅ All clear — no issues found.

This is a small, well-scoped change that correctly marks MSTestAdapter.PlatformServices as IsPackable=false. The project's output DLL is bundled into MSTest.TestAdapter's buildTransitive/ folder (confirmed via the .targets files referencing MSTestAdapter.PlatformServices.dll), so it was never intended to produce its own NuGet package.

Dimension Assessment

# Dimension Finding
1–4 Algorithmic / Thread Safety / Perf / Error Handling N/A — no runtime code change
5 Packaging & NuGet Metadata ✅ Setting IsPackable=false exempts the project from the _ValidatePackageMetadata target in Directory.Build.targets, which is correct since this assembly ships inside another package. No PackageDescription or PACKAGE.md is needed.
6 MSBuild Correctness ✅ Property is placed in the main PropertyGroup alongside other project metadata. No ordering issue.
7 Cross-TFM N/A
8 Public API Surface N/A
9–22 Remaining dimensions N/A — change is purely declarative build metadata

Comment quality

The inline XML comment clearly explains why the project isn't packable, aiding future maintainers. No further action needed.

Generated by Expert Code Review (on PR ready) for #10728 · auto · 65.2 AIC · ⌖ 0.834 AIC · ⊞ 10.4K

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.

Pull request overview

Explicitly marks the embedded PlatformServices project as non-packable.

Changes:

  • Sets IsPackable to false.
  • Documents that the assembly is bundled into MSTest.TestAdapter.
Show a summary per file
File Description
src/Adapter/MSTestAdapter.PlatformServices/MSTestAdapter.PlatformServices.csproj Declares and documents non-packable status.

Review details

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@Evangelink
Amaury Levé (Evangelink) merged commit c005c21 into main Aug 25, 2026
29 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/explicit-platformservices-packability branch August 25, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state/needs-review Awaiting review from the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quality Improvement: Embedded-project packability intent is implicit for MSTestAdapter.PlatformServices

3 participants