Skip to content

React to .NET branding update #88

@gfoidl

Description

@gfoidl

In

public static bool IsRunningOnDotNetCore()
{
if (!_isRunningOnDotNetCore.HasValue)
{
string frameworkName = Assembly.GetEntryAssembly()?.GetCustomAttribute<TargetFrameworkAttribute>()?.FrameworkName;
_isRunningOnDotNetCore = frameworkName?.Contains("NETCoreApp") ?? false;
}
return _isRunningOnDotNetCore.Value;
}
make sure that .NET 5 will be known.

Cf. dotnet/runtime#33680

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions