错误:无法生成deps.json,可能已经生成了.添加对 Xamarin 表单的服务引用时 [英] Error: Unable to generate deps.json, it may have been already generated. when adding a Service reference to Xamarin forms

查看:29
本文介绍了错误:无法生成deps.json,可能已经生成了.添加对 Xamarin 表单的服务引用时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个采用 .NET 标准方法的 Xamarin 表单 v3.1 项目.我尝试添加对我使用的 Web 服务的引用添加连接服务"然后从弹出窗口中,我选择 Microsoft Web 服务参考提供商.

I have a Xamarin forms v3.1 project with the .NET standard approach. I tried to add a reference to a web service I have using "add connected service" and then from the pop up, I choose Microsoft web service reference provider.

我添加了 web 服务链接,Visual Studio (2017 v15.8) 发现了它的结构,然后当我点击完成时,它需要一段时间然后显示这个错误:

I add the web service link, Visual Studio (2017 v15.8) discovers its structure, and then when I click finish, it takes a while but then shows this error:

无法生成deps.json,可能已经生成了.
您可以指定-d"诊断工具名称前的选项
输出(例如,dotnet -d":C:\Program
Files\dotnet\sdk\2.1.400\Sdks\Microsoft.NET.Sdk\targets\GenerateDeps\GenerateDeps.proj
完成.

Unable to generate deps.json, it may have been already generated.
You can specify the "-d" option before the tool name for diagnostic
output (for example, "dotnet -d ": C:\Program
Files\dotnet\sdk\2.1.400\Sdks\Microsoft.NET.Sdk\targets\GenerateDeps\GenerateDeps.proj
Done.

知道为什么会发生这种情况以及如何解决这个问题吗?

Any idea why this is happening and how to solve this issue?

推荐答案

执行工具行命令:

dotnet tool install --global dotnet-svcutil

这篇关于错误:无法生成deps.json,可能已经生成了.添加对 Xamarin 表单的服务引用时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆