CleanupCodeSettingsExtensions.

AddProperty(CleanupCodeSettings, string, string) Method

Summary

Adds a new key-value-pair

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 AddProperty(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