Skip to content

Snippets5000: support .slnx and report missing solution projects - #771

Merged
gewarren merged 2 commits into
mainfrom
snippets5000-slnx-support
Oct 19, 2026
Merged

gewarren merged 2 commits into
mainfrom
snippets5000-slnx-support

Conversation

@gewarren

Copy link
Copy Markdown
Collaborator

Addresses review feedback on dotnet/AspNetCore.Docs#37911 (dotnet/AspNetCore.Docs#37911 (comment)).

  • Solution membership check now parses .slnx <Project Path="..."> entries (previously only the classic .sln regex), handling both path separators.
  • RETURN_SLN_PROJ_MISSING results are now reported as errors and fail the run instead of being silently ignored.

…ojects

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gewarren
gewarren requested a review from BillWagner as a code owner October 16, 2026 23:40
Copilot AI balanced review requested due to automatic review settings October 16, 2026 23:40

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.

🟡 Changes recommended

Regex-based XML extraction can incorrectly accept missing references or reject valid ones.

1 open issue
What changed in this PR

Adds .slnx solution membership checks to Snippets5000 and makes missing project references fail validation.

Changes:

  • Extracts .slnx project paths and normalizes both path separators.
  • Reports missing solution projects as structural errors.
File Description
snippets5000/​Snippets5000/​PullRequestProcessor.cs Adds .slnx reference extraction and path normalization.
snippets5000/​Snippets5000/​Program.cs Reports missing solution references as failures.

Review effort: Balanced

Comment thread snippets5000/Snippets5000/PullRequestProcessor.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like this. That's a great addition.

@gewarren
gewarren merged commit 3db35d9 into main Oct 19, 2026
7 checks passed
@gewarren
gewarren deleted the snippets5000-slnx-support branch October 19, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants