[英]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.