netstandard2.0
This commit is contained in:
parent
f41b89059a
commit
f64d655f49
@ -5,7 +5,8 @@
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<Nullable>enable</Nullable>
|
||||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<LangVersion>10</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@ -64,7 +64,7 @@ public partial class EnhancedStackTrace : StackTrace, IEnumerable<EnhancedStackF
|
||||
if (!string.IsNullOrEmpty(fileName))
|
||||
{
|
||||
sb.Append(" in ");
|
||||
sb.Append(TryGetFullPath(fileName));
|
||||
sb.Append(TryGetFullPath(fileName!));
|
||||
}
|
||||
|
||||
var lineNo = frame.GetFileLineNumber();
|
||||
|
||||
@ -46,7 +46,7 @@ public static class ReflectionHelper
|
||||
{
|
||||
Debug.Assert(attribute.IsTupleElementNameAttribute());
|
||||
|
||||
var propertyInfo = GetTransformNamesPropertyInfo(attribute.GetType());
|
||||
var propertyInfo = GetTransformNamesPropertyInfo(attribute.GetType())!;
|
||||
return propertyInfo.GetValue(attribute) as IList<string>;
|
||||
}
|
||||
|
||||
@ -55,6 +55,6 @@ public static class ReflectionHelper
|
||||
#pragma warning disable 8634
|
||||
return LazyInitializer.EnsureInitialized(ref transformerNamesLazyPropertyInfo,
|
||||
#pragma warning restore 8634
|
||||
() => attributeType.GetProperty("TransformNames", BindingFlags.Instance | BindingFlags.Public)!);
|
||||
() => attributeType.GetProperty("TransformNames", BindingFlags.Instance | BindingFlags.Public)!)!;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user