<PackageReference Include="NUnit" Version="3.8.0" />

AssemblyExtensions

public static class AssemblyExtensions
Extensions for Assembly that are not available in .NET Standard
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace NUnit.Compatibility { public static class AssemblyExtensions { public static object[] GetCustomAttributes(this Assembly asm, Type attributeType, bool inherit) { return asm.GetCustomAttributes(attributeType).ToArray(); } public static IList<Type> GetTypes(this Assembly asm) { return (from info in asm.DefinedTypes select info.AsType()).ToList(); } } }