Skip to content

Implement support multi projet for the csharp parser#847

Open
HorvathDaniel15 wants to merge 1 commit intoEricsson:feature/csharp_pluginfrom
HorvathDaniel15:feature/support-multi-project-csharp-parser
Open

Implement support multi projet for the csharp parser#847
HorvathDaniel15 wants to merge 1 commit intoEricsson:feature/csharp_pluginfrom
HorvathDaniel15:feature/support-multi-project-csharp-parser

Conversation

@HorvathDaniel15
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings April 4, 2026 18:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the C# parser to accept richer inputs (solutions/projects) and to better handle multiple inputs, enabling “multi-project” parsing via Roslyn/MSBuild rather than only directory-based discovery.

Changes:

  • Add input validation and safer log parsing in the C++ wrapper (avoid empty-input and empty-line crashes; log non file-status output).
  • Update the C# parser to support .sln/.slnx and .csproj inputs using MSBuildWorkspace, with a fallback path that extracts project paths from solution files.
  • Add Roslyn MSBuild workspace dependency and ignore .DS_Store.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 7 comments.

File Description
plugins/csharp/parser/src/csharpparser.cpp Validates inputs and hardens parsing of the C# parser output stream.
plugins/csharp/parser/src_csharp/Program.cs Implements solution/project loading via MSBuildWorkspace and multi-project processing with parallel document parsing.
plugins/csharp/parser/src_csharp/CSharpParser.csproj Adds Microsoft.CodeAnalysis.Workspaces.MSBuild to support solution/project loading.
.gitignore Ignores macOS .DS_Store.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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