Entity Framework 6 个电动工具无法与 Visual Studio Community 2017 一起使用
Entity Framework 6 Power Tools not working with Visual Studio Community 2017
我刚刚开始使用 Entity Framework,但遇到了障碍。我正在使用 Visual Studio Community 2017 并且刚刚安装了 "Entity Framework 6 Power Tools Community Edition".. 重新启动 Visual Studio 并且它显示了 Entity Framework 的上下文菜单但是当我点击查看实体数据模型时(阅读 -仅)从 DBContext 派生的 class 选项,它给我以下错误:
"System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsAggregatableProject'."
我的错。我添加了项目类型 Class Library (.Net Standard) 而不是 Class Library (.Net framework),改变它解决了问题
我刚刚开始使用 Entity Framework,但遇到了障碍。我正在使用 Visual Studio Community 2017 并且刚刚安装了 "Entity Framework 6 Power Tools Community Edition".. 重新启动 Visual Studio 并且它显示了 Entity Framework 的上下文菜单但是当我点击查看实体数据模型时(阅读 -仅)从 DBContext 派生的 class 选项,它给我以下错误:
"System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsAggregatableProject'."
我的错。我添加了项目类型 Class Library (.Net Standard) 而不是 Class Library (.Net framework),改变它解决了问题