Skip to main content

trust_solution

Mark a solution path (or directory root) as trusted for analyzer execution. Required before get_diagnostics will load Roslyn analyzer DLLs from the solution. Always confirm with the user before calling this tool — analyzer DLLs run as in-process code.

Parameters

ParameterTypeRequiredDescription
pathstringAbsolute path to a .sln/.slnx file, or a directory when scope='addRoot'
scopestring'session' (in-memory only, default), 'persistent' (write to trust.json), or 'addRoot' (trust the directory and all solutions under it)