CleanupCodeSettingsExtensions.

SetProperty(CleanupCodeSettings, string, string) Method

Summary

Sets a key-value-pair in

Lets you override MSBuild properties. The specified properties are applied to all analyzed projects. Currently, there is no direct way to set a property to a specific project only. The workaround is to create a custom property in this project and assign it to the desired property, then use the custom property in dupFinder parameters.

Syntax

public static CleanupCodeSettings SetProperty(this CleanupCodeSettings toolSettings, string propertyKey, string propertyValue)

Attributes

Type Description
PureAttribute

Parameters

Name Type Description
toolSettings CleanupCodeSettings
propertyKey string
propertyValue string

Return Value

Type Description
CleanupCodeSettings