Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

NLog程序集不能加载 #24

Description

@Yanniklee

private void InitLog()
{
if (hasInitialize) return;
var properties = new NameValueCollection();
properties["configType"] = "FILE";
properties["configFile"] = "~/App_Data/config/NLog.config";
LogManager.Adapter = new Common.Logging.NLog.NLogLoggerFactoryAdapter(properties);
log = LogManager.GetLogger("Magicodes.Core.Strategy.Logger");
hasInitialize = true;
}

提示:未能加载文件或程序集“NLog, Version=3.2.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c”或它的某一个依赖项。系统找不到指定的文件。
但是工程里面的dll引用是OK的。这是什么原因呢

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions