using System; using System.Reflection; using System.Runtime.Versioning; namespace Prise.Utils { public static class HostFrameworkUtils { public static string GetHostframeworkFromHost() => Assembly.GetEntryAssembly().GetCustomAttribute()?.FrameworkName; public static string GetHostframeworkFromType(Type type) => type.Assembly.GetCustomAttribute()?.FrameworkName; } }