load_solution

[solution]

Loads a C# solution (.sln file) for analysis. Returns the list of projects in the solution.

Parameters

NameTypeRequiredDescription
solutionPathstringYesThe absolute path to the .sln file to load.

Examples

Load a solution

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "load_solution",
    "arguments": {
      "solutionPath": "/Users/dev/MyProject/MyProject.sln"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "solutionPath": "/Users/dev/MyProject/MyProject.sln",
    "projectCount": 2,
    "projects": [
      {
        "name": "MyProject",
        "filePath": "/Users/dev/MyProject/MyProject.csproj"
      },
      {
        "name": "MyProject.Tests",
        "filePath": "/Users/dev/MyProject/MyProject.Tests.csproj"
      }
    ]
  },
  "error": null
}

Response

Returns list of projects in the solution

Go to Playground to test this tool interactively.