问题描述
在安装了microsoft.entityframework.tools -Pre/和sqlserver之后,使用添加迁移"InitialCreate"时,出现错误,提示构建失败".
After installing the microsoft.entityframework.tools -Pre/ and sqlserver, when using add-migration "InitialCreate", I have an error stating "build failed".
这是尝试显式构建项目时的错误:
This is the error when trying to explicitly build the project:
推荐答案
最好能与我们分享有关如何在我们这方面重现此问题的详细步骤.
It would be better if you could share us the detailed steps about how we can repro this issue in our side.
>>找不到与目标运行时之一兼容的框架'.NETCoreApp,Version = v1.0'的运行时目标:'win10-x64,win81-x64,win8-x64,win7-x64'.
>>Can not find runtime target for framework '.NETCoreApp,Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'.
从以上错误消息中,您最好检查是否指定了project.json
文件中的runtimes
部分.
From the above error messages, you'd better to check that whether you specify aruntimes
section in your project.json
file.
相同的错误消息:
https://github.com/dotnet/cli/issues/2578
注意:此响应包含对第三方万维网站点的引用. Microsoft为方便您而提供此信息.
Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
Microsoft不控制这些站点,也未测试在这些站点上找到的任何软件或信息;
因此,Microsoft无法对在此找到的任何软件或信息的质量,安全性或适用性做出任何陈述.
使用Internet上发现的任何软件都存在固有的危险,Microsoft提醒您在从Internet上检索任何软件之前,请确保您完全了解风险.
最好的问候,
Jack
这篇关于为什么我的构建失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!