简体   繁体   English

当我在 package 管理器控制台中的 Visual Studio 2013 中安装实体框架时

[英]When I am installing Entity Framework in Visual Studio 2013 in the package manager console

Install-Package: The default XML namespace of the project must be the MSBuild XML namespace.安装包:项目的默认 XML 命名空间必须是 MSBuild XML 命名空间。 If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element.如果项目以 MSBuild 2003 格式创作,请将 xmlns="http://schemas.microsoft.com/developer/msbuild/2003" 添加到元素中。 If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.如果项目是用旧的 1.0 或 1.2 格式创作的,请将其转换为 MSBuild 2003 格式。 C:\Users\pc\Documents\Visual Studio 2013\clientsidemanagement\entitydemo\packages\EntityFramewor k.6.3.0\build\EntityFramework.props C:\Users\pc\Documents\Visual Studio 2013\clientsidemanagement\entitydemo\packages\EntityFramework k.6.3.0\build\EntityFramework.props
At line:1 char:16在行:1 字符:16
+ install-Package <<<< EntityFramework + 安装包 <<<< EntityFramework
+ CategoryInfo: NotSpecified: (:) [Install-Packa + CategoryInfo:未指定:(:) [Install-Packa

Using a more recent version of Visual Studio will work.使用更新版本的 Visual Studio 即可。 Also, downgrading to EF 6.2.0 worked for me, but I also need a better solution to this (ie one that lets me use 6.3.0) since I'm deploying to Azure and my site won't deploy unless I use 6.2.0.此外,降级到 EF 6.2.0 对我有用,但我还需要一个更好的解决方案(即让我使用 6.3.0 的解决方案),因为我正在部署到 Azure 并且我的站点不会部署,除非我使用 6.2 .0.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Visual Studio 中为 ASP.NET MVC 使用 package 管理器控制台安装 Package 时面临问题 - Facing issue while installing Package using package Manager console in Visual Studio for ASP.NET MVC 实体框架包管理器控制台问题 - Entity Framework Package Manager Console question Visual Studio 2013中的Entity Framework Power 4工具 - Entity Framework Power 4 tools in Visual Studio 2013 (使用Visual Studio 2013)如何使用Entity Framework在oracle包内调用存储过程? - (using Visual Studio 2013) How to call a Stored Procedure inside an oracle package with Entity Framework? 在 Visual Studio Code 扩展中安装实体框架 - Installing Entity Framework in Visual Studio Code Extension 在Visual Studio 2015中安装实体框架失败 - Installing Entity Framework fails in Visual Studio 2015 在Visual Studio中的程序包管理器控制台上执行“更新数据库”时,出现错误:找不到内容根文件夹 - When doing an “update-database” on the package manager console in visual studio i get error : Could not find content root folder 在扩展中以编程方式访问visual studio的powershell控制台(包管理器控制台) - Access the powershell console (package manager console) of visual studio programmatically in an extension 使用 NuGet Package Manager 安装 Entity Framework 6 不会创建相关引用。 (我认为) - Installing Entity Framework 6 with NuGet Package Manager does not create the relevant references. (I think) 实体框架:在包管理器控制台VS 2012中添加迁移时抛出Null Reference Exception - Entity framework: Null Reference Exception thrown when adding migration in package manager console VS 2012
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM