Files
0704fa160b Update WSLC SDK API documentation (#41677)
* Update WSLC SDK API documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Update docs

* Update docs

* Quick fixes

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Craig Loewen <crloewen@microsoft.com>
2026-09-29 10:14:54 -04:00

659 B

InstallOptions

Selects components for WslcService.InstallWithDependencies and controls repair behavior.

public sealed class InstallOptions
{
    public InstallOptions();

    public IReadOnlyList<Component> Components { get; set; }
    public bool Repair { get; set; }
}

If Components is null, the service determines which components require installation. Set Repair to true to allow the WSL package to be reinstalled; it has no effect when installing Virtual Machine Platform. If the component list contains Component.SdkNeedsUpdate, installation fails because installing components cannot resolve the SDK compatibility error.