dotnet core 出现Can not find runtime target for framework '.NETCoreApp,Version=v1.6' 的解决办法
2017-01-20 10:08
543 查看
如果你在更新dotnet core新的类库后运行程序提示如下的错误:
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'. Possible causes:
The project has not been restored or restore failed -run 'dotnet restore'
The project does not list one of 'win10-x64, win81-x64, win7-x64' in the 'runtimes'
解决方法:在项目的
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'. Possible causes:
The project has not been restored or restore failed -run 'dotnet restore'
The project does not list one of 'win10-x64, win81-x64, win7-x64' in the 'runtimes'
解决方法:在项目的
project.json文件添加以下的节点 重新编译即可:
"runtimes":{ "win10-x64":{} } 或者 可以修改
Microsoft.NETCore.App节点的内容如下,Version的版本请对应你的dotnet core版本号
"Microsoft.NETCore.App":{ "type":"platform", "version":"1.0.1" }
相关文章推荐
- dotnet core 出现Can not find runtime target for framework '.NETCoreApp,Version=v1.6' 的解决办法
- [C#]使用 C# 代码实现拓扑排序 dotNet Core WEB程序使用 Nginx反向代理 C#里面获得应用程序的当前路径 关于Nginx设置端口号,在Asp.net 获取不到的,解决办法 .Net程序员 初学Ubuntu ,配置Nignix 夜深了,写了个JQuery的省市区三级级联效果
- Nuget自己打包引用的时候出现错误:Package is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package 1.0.1 supports: net (.NETFramework,Version=v0.0)
- 运行DotNetNuke 6 源码出现string strMessage = DataProvider.Instance().GetProviderPath();异常的解决办法
- 在web host 的DotNetNuke中添加连接时出现的错误及解决办法
- 安装Visual Studio.net 2005 SP1出现错误 1718 的解决办法
- Myeclipse6.5+weblogic8.1老是配置文件出现,sax解析错误,不能解析web-app的解决办法
- VS2005调试ASP.NET出现未能开始侦听端口解决办法
- json-lib 出现net.sf.json.JSONException: There is a cycle in the hierarchy异常的解决办法
- DbEntry.net使用时出现System.Data.SqlTypes.SqlNullValueException解决办法
- Asp.net Oracle 事务出现奇怪的自动提交现象及解决办法
- WEB下引用.NET Windows Control(Windows控件)经常出现的错误和解决办法
- eVC编译时,出现corelibc.lib(pegwmain.obj) : error LNK2019解决办法
- Asp.Net 关于Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0,解决办法
- asp.net 发送 xml post请求和接收 xml post请求时出现(500) 内部服务器错误的解决办法
- Visual Studio 2008不能创建数据库连接出现:未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080cc91”或它的一个依赖项。系统找不到指定的文件的解决办法
- Ado.net间歇性出现莫名其妙问题的一种解决办法
- asp.net中编辑DataGrid出现Index超出范围的解决办法(原)
- 关于ASP.NET,站点中有文件,却出现找不到文件、404错误的解决办法
- asp.net 连接oracle时 出现客户端连接问题的解决办法