ASP.NET Core Build错误

时间:2016-06-16 22:00:27

标签: asp.net .net-core-rc2

使用新的,最新的和最好的ASP.Net CORE RC2。

按照入门示例:https://docs.efproject.net/en/latest/platforms/aspnetcore/existing-db.html

运行Scaffolding Nuget命令时出现构建错误: Scaffold-DbContext“'Server =(localdb)\ mssqllocaldb; Database = Blogging; Trusted_Connection = True;'”Microsoft.EntityFrameworkCore.SqlServer

错误是: C:\ Code \ EFGetStarted.AspNetCore.ExistingDb \ src \ EFGetStarted.AspNetCore.ExistingDb \ error CS0041:写入调试信息时出现意外错误 - 'Windows PDB编写器不可用 - 找不到Microsoft.DiaSymReader.Native.amd64.dll “

执行干净构建会返回相同的结果。

NuGetted这个包: 安装包Microsoft.DiaSymReader.Native -Pre

并在project.json中引用:

"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-3002702",
  "type": "platform"
},
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview1-final",
"Microsoft.EntityFrameworkCore.SqlServer.Design": "1.0.0-rc2-final",
"Microsoft.DiaSymReader.Native": "1.4.0-rc2"
},

然而仍然得到相同的结果。

dotnet恢复,用Google搜索 ad nauseum

WTF。

0 个答案:

没有答案