Skip to content

Commit 0881d1b

Browse files
committed
netstandard 1.5 fix
1 parent d45f14f commit 0881d1b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CommandLine/Infrastructure/LocalizableAttributeProperty.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ private string GetLocalizedValue()
4343
return _value;
4444
if (_localizationPropertyInfo == null)
4545
{
46-
// Static class IsAbstract
46+
// Static class IsAbstract
47+
#if NETSTANDARD1_5
48+
if (!_type.GetTypeInfo().IsVisible)
49+
#else
4750
if (!_type.IsVisible)
51+
#endif
4852
throw new ArgumentException("Invalid resource type", _propertyName);
4953
PropertyInfo propertyInfo = _type.GetProperty(_value, BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static);
5054
if (propertyInfo == null || !propertyInfo.CanRead || propertyInfo.PropertyType != typeof(string))

0 commit comments

Comments
 (0)