1

I created a .NET Standard 2.0 library project using Visual Studio and tried to install Seq as follows.

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.

enter image description here

Just as a comparison, installing the following Serilog packages on the same project works just fine

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

What is happening? Is it a .NET Core/Standard issue?

4

1 回答 1

0

不,该包可以很好地安装到 .NET Standard 2.0 类库中。

这里的问题似乎是 NuGet 客户端在哪里寻找包。在包管理器控制台窗口中,尝试从包源下拉列表中选择 NuGet.org。

(其他成功的包可能缓存在机器上。)

于 2017-12-29T21:00:18.373 回答