Closed neooleg closed 7 years ago
I think there is a dependency that causes the problem (Newtonsoft). Just add Newtonsoft.Json as a package first, then add this package. But the nuspec should get an update to remove the dependency - it's not just I think.
Hi @stefandevo, thanks for responding!
Newtonsoft.Json is already installed (latest version), but issue is still there.
The strange thing is that Serilog.Sinks.Xamarin trying to install the oldest in NuGet Serilog 0.1.6. Do you know why?
BTW, yep Serilog 0.1.6 really can not be installed for e.g. iOS project, however, the latest Serilog 2.3.0 installs fine as it expected.
I installed serilog first in ios and android. Then added the xamarin sink. That should work.
Problem is that the nuspec is wrong. It takes the "min" dependency id for Serilog. So my suggestion works (install NewtonJson and Serilog manually). I created a pull request for fixing this.. @ghuntley
Thanks, the suggestion works 👍
This has been resolved thanks to @stefandevo's PR - v0.1.25 is now available on NuGet.org
Issue
this is impossible to add Serilog.Sinks.Xamarin for both iOS and Android projects. Tried all versions of the sink (0.1.14 - 0.1.18).
The following error appeared (e.g. for Android):
Environment