question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange Error Installing from NuGet

See original GitHub issue

FWIW, 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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
nblumhardtcommented, Apr 27, 2016

Okay… I have absolutely no idea how this comes about, but tooling problems with System.Runtime.dll aren’t anything new unfortunately.

  • If the package itself doesn’t reference System.Runtime.dll as a framework assembly, it won’t build
  • If it does reference it, this error…

To fix it:

  1. Manually add a reference to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259\System.Runtime.dll to your project
  2. Install SerilogTimings
  3. Remove the System.Runtime.dll reference
  4. Build

Any luck with this recipe?

0reactions
nblumhardtcommented, May 20, 2016

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found