如何为 Visual Studio 2010 安装 NLog?

How to install NLog for Visual Studio 2010?

我有一个没有日志记录机制的遗留项目。我试图在其中安装 Nlog 2.0 但无济于事。它不会出现在包管理器搜索结果中。我尝试了 NLog page which took me this CodePlex 页面。当我下载存档时,解压 zip 包时看不到 .exe 文件。感谢任何帮助。

NLog 2.1 也在 NuGet 上? (最新的 NLog 2 版本)。参见 https://www.nuget.org/packages/NLog/2.1.0

您也可以手动下载并解压。

I'm looking for Nlog 2.0 since it is the only one compatible with 2010 right?

Visual Studio 支持 .NET 2 - 4.0,所以您也可以选择最新的 NLog 版本 (4.6.5)