IL2036: Unresolved type in 'DynamicDependencyAttribute'

Cause

The value passed to the typeName parameter of a DynamicDependencyAttribute could not be resolved.

Example

// IL2036: Unresolved type 'NonExistentType' in 'DynamicDependencyAttribute'
[DynamicDependency("Method", "NonExistentType", "MyAssembly")]
public void TestMethod()
{
}