Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Including EntityFramework.Commands to Dependencies causes error

$
0
0

Hello,

I have a .NET 5 project with a Web API template.  When I add "EntityFramework.Commands": "7.0.0-rc1-final" to dependencies in project.json, I get an error in my startup.cs where I'm trying to use IApplicationBuilder.  The error says: "The type 'IApplicationBuilder' is defined in an assembly that is not referenced.  You must add a reference to assembly 'Microsoft.AspNet.Http.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.  This is odd because it only shows up when I have that "EntityFramework.Commands":"7.0.0-rc1-final", when I take it out it doesn't show an error.  Does anyone know why this might be happening?  Let me know what other info I need to provide.

Thank you.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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