[solution]
Loads a C# solution (.sln file) for analysis. Returns the list of projects in the solution.
| Name | Type | Required | Description |
|---|---|---|---|
| solutionPath | string | Yes | The absolute path to the .sln file to load. |
Load a solution
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "load_solution",
"arguments": {
"solutionPath": "/Users/dev/MyProject/MyProject.sln"
}
}
}{
"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
}Returns list of projects in the solution
Go to Playground to test this tool interactively.