IL2033: 'PreserveDependencyAttribute' is deprecated

Cause

PreserveDependencyAttribute was an internal attribute used by the trimmer and is not supported. Use DynamicDependencyAttribute instead.

Example

// IL2033: 'PreserveDependencyAttribute' is deprecated. Use 'DynamicDependencyAttribute' instead.
[PreserveDependency("OtherMethod")]
public void TestMethod()
{
}