简体   繁体   English

Serilog Seq 包未安装在 .NET Standard 2.0 库项目上

[英]Serilog Seq package does not install on .NET Standard 2.0 library project

I created a .NET Standard 2.0 library project using Visual Studio and tried to install Seq as follows.我使用 Visual Studio 创建了一个 .NET Standard 2.0 库项目,并尝试如下安装 Seq。

Install-Package -Id Serilog.Sinks.Seq 

The top line of error says错误的第一行说

Unable to find package 'Serilog.Sinks.Seq' at source ''.

Full detail is in this screenshot.完整的细节在这个截图中。

在此处输入图片说明

Just as a comparison, installing the following Serilog packages on the same project works just fine作为比较,在同一个项目上安装以下 Serilog 包工作正常

Install-Package -Id Serilog
Install-Package -Id Serilog.Enrichers.Thread

What is happening?发生了什么? Is it a .NET Core/Standard issue?这是 .NET Core/Standard 问题吗?

No, the package installs fine into .NET Standard 2.0 class libraries.不,该包可以很好地安装到 .NET Standard 2.0 类库中。

The issue here is seems to be where the NuGet client is looking for packages.这里的问题似乎是 NuGet 客户端正在寻找包的地方。 In the Package Manager Console window, try selecting NuGet.org from the package source drop-down.包管理器控制台窗口中,尝试从包源下拉列表中选择 NuGet.org。

(The other packages that are succeeding are probably cached on the machine.) (其他成功的包可能缓存在机器上。)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GalaSoft.MvvmLight Package 参考错误与 .net 标准 2.0 项目 - GalaSoft.MvvmLight Package reference error with .net Standard 2.0 project .NET 4.6.1项目引用的.NET Standard 2.0库-引用的图形库版本错误 - .NET Standard 2.0 library referenced by .NET 4.6.1 project - Wrong version of Drawing library referenced 在我的.Net Core 2.0项目中,使用.Net FW软件包代替.Net Standard(警告NU1701) - In my .Net Core 2.0 project, .Net FW package is used instead of .Net Standard (warning NU1701) 添加.NET Standard 2.0类库项目后,UWP应用程序项目出错 - UWP app project gets error after addition of .NET Standard 2.0 class library project 面向.net 4.7.1的项目无法引用依赖于.net standard 2.0的NuGet程序包 - Project that targets .net 4.7.1 cannot reference a NuGet package that depends on .net standard 2.0 在 NET Framework 4.8 项目中引用 NET Standard 2.0 库 - 性能问题? - Referencing a NET Standard 2.0 library in a NET Framework 4.8 Project - Performance Issues? .NET Standard 2.0 NuGet包生成 - .NET Standard 2.0 NuGet Package Generation .net 标准 2.0 库中的 EF Core DbContext - EF Core DbContext in .net standard 2.0 library 将 .NET Standard 库打包为 Nuget 包并包含所有项目依赖项/引用 - Package .NET Standard library as Nuget package and include all project dependencies / references 如何在VSTS(CI)中为.NET标准库(2.0)项目启用代码覆盖率 - How do I enable Code Coverage for .NET Standard Library (2.0) project in VSTS (CI)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM