Strange Error Installing from NuGet
See original GitHub issueFWIW, I am getting the following error when trying to install the NuGet package (this is from a new Class Library from scratch – with Serilog 1.5.14 installed within it):
Attempting to gather dependency information for package 'SerilogTimings.1.0.0-beta-26' with respect to project 'ClassLibrary1', targeting '.NETFramework,Version=v4.5.1'
Attempting to resolve dependencies for package 'SerilogTimings.1.0.0-beta-26' with DependencyBehavior 'Lowest'
Resolving actions to install package 'SerilogTimings.1.0.0-beta-26'
Resolved actions to install package 'SerilogTimings.1.0.0-beta-26'
Adding package 'SerilogTimings.1.0.0-beta-26' to folder '..\ClassLibrary1\packages'
Added package 'SerilogTimings.1.0.0-beta-26' to folder '..\ClassLibrary1\packages'
Install failed. Rolling back...
Package 'SerilogTimings.1.0.0-beta-26 : Serilog [1.5.14, )' does not exist in project 'ClassLibrary1'
Removing package 'SerilogTimings.1.0.0-beta-26 : Serilog [1.5.14, )' from folder '..\ClassLibrary1\packages'
Removed package 'SerilogTimings.1.0.0-beta-26 : Serilog [1.5.14, )' from folder '..\ClassLibrary1\packages'
The Serilog [1.5.14, ) is key, I am thinking. Maybe a bad token somewhere?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Nuget package install fails
I have a few nuget packages created and installed on my local Nuget Server. They work fine. I can install them no problem....
Read more >Known Issues with NuGet
If you are having trouble installing NuGet or managing packages, please take a look ... After VS restart, you get weird build errors....
Read more >Package install error and Rollback · Issue #1485 · NuGet ...
I have a problem with a package install on my machine. It appears this problem is isolated as others can install the package...
Read more >NuGet problems when installing X
When I try to install the X tools for ServiceStack, I get a strange NUGET error for my private MyGet repo. I have...
Read more >Visual Studio Build fails with MSB4086 after NuGet Update ...
I just got into some strange errors after I had done a NuGet update-packages of some package. The build of the solution after...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Okay… I have absolutely no idea how this comes about, but tooling problems with System.Runtime.dll aren’t anything new unfortunately.
To fix it:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259\System.Runtime.dllto your projectAny luck with this recipe?
Call me crazy, but I’ve just bumped the version of this package to 2.0-rc and shifted the whole thing to Serilog 2.0.
https://github.com/nblumhardt/serilog-timings/commit/55298e1588cf8e3bd195b43aa5cfc1901a5a2dbb
The 1.0-* packages are still there for Serilog 1.5 support, but this issue makes them a bit painful. Time to move forward 😃