Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Including NGravatar leads to OData.Core dll not found ( and using higher version)

$
0
0

I'm totally flabbergasted by this.

I have a Asp.Net MVC v 5.2.3 project.

When i include https://github.com/NicoJuicy/ngravatar ( not published on the default nuget repo yet).

The NGravatar nuget package sample works on Mvc v. 5.2.3.

When i include it in my own project, OData dll gives me an error:

System.IO.FileLoadException: 'Could not load file or assembly 'Microsoft.OData.Core, Version=7.6.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

When i remove the NGravatar package. The error is gone.

  • The odata package is not used anywhere in NGravatar and doesn't require it.
  • The web project uses .net framework 4.6.1
  • The Nuget package is compiled with .Net framework 4.6.0

The odata version used in the project is v. 5.18 . So i don't want v 7.6.1.0 that is suggested by the runtime error.

  • Removed the package and installed the package 3 times. Always had the error when NGravatar was included. Never had the error when it was uninstalled.

In short, when NGravatar is not used. OData uses the correct version. When NGravatar is included, the package version magically updates.

What could be the cause of this?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>