【问题标题】:Unable to install Sentry with Log4Net on .Net 4.6.1无法在 .Net 4.6.1 上使用 Log4Net 安装 Sentry
【发布时间】:2020-03-04 13:39:06
【问题描述】:

正在尝试安装 Sentry Log4Net 2.1.0 版。

项目正在运行 .net 4.6.1

根据他们的文档,它应该适用于 4.6.1: https://docs.sentry.io/error-reporting/quickstart/?platform=csharp#configure-the-sdk

我可以很好地安装基本哨兵包。但是当我尝试安装 Log4Net nuget 包时出现错误:

无法安装包 Sentry.Log4Net 2.1.0,您正在尝试将此包安装到以 .Net Framework 版本 4.6.1 为目标的项目中,但该包不包含任何兼容的程序集引用或内容文件有了这个框架。

我满足列出的所有依赖项:https://www.nuget.org/packages/Sentry.Log4Net

我怀疑这很重要,但我在 Visual Studio 2015 上

所以我有点困惑。有人有什么建议吗?

【问题讨论】:

    标签: .net sentry


    【解决方案1】:

    我的猜测是您使用的 Visual Studio 2015 版本有一些旧的 NuGet 客户端。

    在 GitHub 上的 Sentry SDK 存储库中有一个 sample project for log4net targeting .NET Framework 4.6.1,它可以正常工作。

    你能用 VS 2017 或 VS 2019 试试吗?

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-02-09
    • 1970-01-01
    • 1970-01-01
    • 2020-02-04
    • 1970-01-01
    • 2021-05-13
    • 1970-01-01
    相关资源
    最近更新 更多