首页 新闻 赞助 找找看

VS2015项目,如何 用project.json 来替换package.config 的依赖加载

0
悬赏园豆:15 [待解决问题]


我们Console App 用 .netFrameWork4.5.1,EF用 6.0.0 原来项目用NUget引用EF6.0.0,在package.config 配置
现在准备用 project.json 来动态配置
现在我配置如下:
project.json文件中

{
"dependencies": {
"EntityFramework": "6.0.0"
},
"frameworks": {
"net451": {}
},
"runtimes": {
"win": {}
}
}

程序编译没问题,运行的时候,老提示

The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application
config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. 
Make sure that the assembly-qualified name is used and that the assembly is available to the running application.
See http://go.microsoft.com/fwlink/?LinkId=260882 for more information."

sun_yang的主页 sun_yang | 初学一级 | 园豆:187
提问于:2016-10-20 19:32
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册