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

Could not load file or assembly System.Runtime.CompilerServices.Unsafe - when reference dll file from another project

$
0
0

I add an entity framework project to a solution and reference it to the existing project(referencing the project throws errors because the existing project have .NET Framework and the entity framework project have .NET Core , so i referenced the dll of the entity framework project.

The exception :

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'

I try to use bindingRedirect but its not worked for me.from app config :

<dependentAssembly><assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" /></dependentAssembly><dependentAssembly>

I read several solutions but none of them worked for me.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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