This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18869|Reply: 1

[WCF/Web Servics] WCF:Error:Unable to generate deps.json

[Copy link]
Posted on 7/2/2020 9:52:57 AM | | | |
When using asp.net core to reference WCF services, the error is as follows:
Importing web service metadata ...
Number of service endpoints found: 1
Scaffolding service reference code ...
Error: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 <toolname>": C:\Program Files\dotnet\sdk\3.1.300\Sdks\Microsoft.NET.Sdk\targets\GenerateDeps\GenerateDeps.proj
Done.



Try running a command like this:

The error is as follows:

Telemetry is: Enabled
projectfactory: MSBUILD_EXE_PATH = C:\Program Files\dotnet\sdk\3.1.300\MSBuild.dll
projectfactory: MSBuild project path =
projecttoolscommandresolver: ProjectFactory did not find Project.
Microsoft.DotNet.Cli.Utils.CommandUnknownException: Could not execute because the specified command or file was not found.
Possible reasons for this include:                                                                                        * You misspelled a built-in dotnet command.
  * You intended to execute a .NET Core program, but dotnet-svcutil does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
   at Microsoft.DotNet.CommandFactory.CommandFactoryUsingResolver.Create(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)                                                                                                                  at Microsoft.DotNet. Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)                                  at Microsoft.DotNet.Cli.Program.Main(String[] args)


solution

Install the svcutil tool globally using the dotnet-cli command, the command is as follows:



Re-reference the WCF Service.

The hyperlink login is visible.




Previous:Nuget sets up HTTP proxy access
Next:Configuration of CentOS system hardware requirements
Posted on 12/2/2022 1:22:28 AM |
Learn from the gods
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com