.Net core2.0调用WebService一直出错。哪位大神遇到过。谢谢!

soamu 2018-03-06 10:57:54
环境:VS2017+Microsoft WCF Service Reference Provider - Preview


Importing web service metadata ...
Number of services found: 2
Restoring NuGet packages ...
Building solution ...
Scaffolding service reference code ...
错误:It was not possible to find any compatible framework version


错误:The specified framework 'Microsoft.NETCore.App', version '1.0.5' was not found.


错误: - Check application dependencies and target a framework version installed at:


错误: \


错误: - Alternatively, install the framework version '1.0.5'.


错误:An unknown error occurred while invoking the service metadata component.
Failed to generate service reference.
...全文
1444 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
soamu 2018-03-07
  • 打赏
  • 举报
回复
引用 3 楼 xomix 的回复:
[quote=引用 2 楼 soamu 的回复:] 我现在的版本已经是2.0了。。。还要在安装1.0.5吗?
1.0和2.0的库向下兼容不向上兼容啊,你自己按照引用库的兼容性决定版本决定开发环境。[/quote] 我们的项目是core2.0,需要引用的webservice不是我们项目内的,是其他公司的项目接口。。我们左右不了他们的版本。还有什么其他办法吗?
  • 打赏
  • 举报
回复
引用 2 楼 soamu 的回复:
我现在的版本已经是2.0了。。。还要在安装1.0.5吗?
1.0和2.0的库向下兼容不向上兼容啊,你自己按照引用库的兼容性决定版本决定开发环境。
soamu 2018-03-07
  • 打赏
  • 举报
回复
我现在的版本已经是2.0了。。。还要在安装1.0.5吗?
shoppo0505 2018-03-06
  • 打赏
  • 举报
回复
错误提示很清楚啊。 你要先安装framework 'Microsoft.NETCore.App', version '1.0.5'

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧