load_project

[solution]

Loads a standalone C# project (.csproj file) for analysis when no solution file exists.

Parameters

NameTypeRequiredDescription
projectPathstringYesThe absolute path to the .csproj file to load.

Examples

Load a standalone project

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "load_project",
    "arguments": {
      "projectPath": "/Users/dev/MyProject/MyProject.csproj"
    }
  }
}
Response
{
  "success": true,
  "data": {
    "projectName": "MyProject",
    "projectPath": "/Users/dev/MyProject/MyProject.csproj",
    "frameworks": [
      "net8.0"
    ]
  },
  "error": null
}

Response

Returns project information

Go to Playground to test this tool interactively.