Skip to content

System.IO.FileNotFoundException: Microsoft.Extensions.Logging.Filter #241

@jimmy84

Description

@jimmy84

During debug mode in net core 2.0, the below exception was thrown on line

var logger = NLogBuilder.ConfigureNLog("nlog.config").GetCurrentClassLogger();

I believe Microsoft.Extensions.Logging.Filter was no longer available after net core 1.1, or am I missing something here?

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Logging.Filter, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.Extensions.Logging.Filter, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks, IntPtr ptrLoadContextBinder)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, IntPtr ptrLoadContextBinder)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions