asp.net-core – 程序集中找不到入口点’Microsoft.EntityFrameworkCore.Desi
发布时间:2020-05-25 08:49:29 所属栏目:asp.Net 来源:互联网
导读:请在下面查看Package Manager控制台中提供的数据.我无法进行添加迁移.当我做dotnet.exe崩溃. PM Add-Migration 1Unhandled Exception: System.MissingMethodException: Entry point not found in assembly Microsoft.EntityFrameworkCore.Desig
|
请在下面查看Package Manager控制台中提供的数据.我无法进行添加迁移.当我做dotnet.exe崩溃. PM> Add-Migration 1 Unhandled Exception: System.MissingMethodException: Entry point not found in assembly 'Microsoft.EntityFrameworkCore.Design,Version=1.0.1.0,Culture=neutral,PublicKeyToken=adb9793829ddae60'. PM> dotnet --info .NET Command Line Tools (1.0.0-preview2-003131) Product Information: Version: 1.0.0-preview2-003131 Commit SHA-1 hash: 635cf40e58 Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 解决方法我通过删除Design参考并仅使用工具参考解决了这个问题.编辑: 随着时间的推移给我另一个错误,从我可以告诉的问题是微软更新了他们的设计包而不是他们的工具包,所以两者都不能一起工作,因为如果你按照他们的教程,它应该得到你得到的最新包遵循它的错误. 我通过强制两个包到1.0.0-preview2-final来解决它. {
"buildOptions": {
"emitEntryPoint": true,"preserveCompilationContext": true
},"dependencies": {
"Microsoft.AspNetCore.Session": "1.0.0","Microsoft.AspNetCore.Mvc": "1.0.1","Microsoft.AspNetCore.Server.IISIntegration": "1.0.0","Microsoft.AspNetCore.Server.Kestrel": "1.0.1","Microsoft.AspNetCore.StaticFiles": "1.0.0","Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0","Microsoft.Extensions.Configuration.FileExtensions": "1.0.0","Microsoft.Extensions.Configuration.Json": "1.0.0","Microsoft.Extensions.Logging": "1.0.0","Microsoft.Extensions.Logging.Console": "1.0.0","Microsoft.Extensions.Logging.Debug": "1.0.0","Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0","Microsoft.NETCore.App": "1.0.1","System.Runtime": "4.1.0","Newtonsoft.Json": "9.0.1","DataAccess": "1.0.0-*","Entities": "1.0.0-*","Microsoft.EntityFrameworkCore.SqlServer": "1.0.1","Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final","Microsoft.EntityFrameworkCore.Design": "1.0.0-preview2-final"
},"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6","portable-net45+win8"
]
}
},"publishOptions": {
"include": [
"wwwroot","appsettings.json","web.config"
]
},"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},"runtimes": {
"win10-x64": {},"win8-x64": {},"win7-x64": {}
},"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},"tools": {
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final","Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
}
} (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – ReportViewer控件 – 高度问题
- asp.net-mvc – 在kendo模板中渲染剑道控件(Razor)
- asp.net-mvc-3 – 在html标签中添加html输入
- asp.net-core – RemoteIpAddress始终为null
- asp.net-mvc – 如何传递特殊字符使ASP.NET MVC可以正确处理
- 将数据从asp.net-mvc传递到javascript的最佳做法
- asp.net – 在webrequest上停止了应用程序池
- asp.net – MVC4默认路由指向某个区域
- asp.net-mvc – 使URL特定于(通过路由)
- .net – 如何保持验证DRY?
推荐文章
站长推荐
- asp.net-mvc – 如何将HTML5表单操作链接到ASP.N
- asp.net-mvc – Validator.TryValidateObject不验
- asp.net简单生成XML文件的方法
- asp.net – JMeter测试ASP .NET网页有多好?
- asp.net-core – 将绝对文件路径转换为相对路径
- 如何在ASP.Net中将HTML页面转换为图像格式
- asp.net-mvc – 使用OWIN和WsFederation为MVC,we
- asp.net-mvc – ASP.NET身份和声明
- asp.net-core – Controller.json设置Serializat
- asp.net – 如何在一个新的选项卡中打开asp:Hyp
热点阅读
