在Add-Migration时出现类似错误时,看看默认启动项目是不是不是web,而是类库
Posted duoe
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在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,而是类库
以上是关于在Add-Migration时出现类似错误时,看看默认启动项目是不是不是web,而是类库的主要内容,如果未能解决你的问题,请参考以下文章
在JavaScript中调用函数时出现JavaScript错误,而不是在HTML中调用时[重复]