在Add-Migration时出现类似错误时,看看默认启动项目是不是不是web,而是类库

Startup project 'XXXXXXXX' targets framework '.NETStandard'. There is no runtime associated with this framework, and projects targeting it cannot be executed directly. To use the Entity Framework Core Package Manager Console Tools with this project, add an executable project targeting .NET Framework or .NET Core that references this project, and set it as the startup project; or, update this project to cross-target .NET Framework or .NET Core. For more information on using the EF Core Tools with .NET Standard projects, see https://go.microsoft.com/fwlink/?linkid=2034705

在Add-Migration时出现类似错误时,看看默认启动项目是不是不是web,而是类库

posted @ 2020-01-13 18:12  永恒一生  阅读(982)  评论(0编辑  收藏  举报