SetRestoreLockedMode(MSBuildSettings, bool) Method


Sets whether or not to lock the package dependency graph while restoring, using the packages.lock.json file. This setting is available with atleast Visual Studio 2017 version 15.9 and above or NET SDK version 2.1.500 and above.


public static MSBuildSettings SetRestoreLockedMode(this MSBuildSettings settings, bool restoreLockedMode)


Name Type Description
settings MSBuildSettings The settings.
restoreLockedMode bool true if locked mode restore should be enabled; otherwise false.

Return Value

Type Description
MSBuildSettings The same MSBuildSettings instance so that multiple calls can be chained.