netstandard2.0

This commit is contained in:
timerix 2022-11-17 18:50:40 +06:00
parent f41b89059a
commit f64d655f49
3 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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();

View File

@ -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)!)!;
}
}