Reputation: 1388
I followed many ways, here the main two:
Install via Nuget: I have created a dedicated .Net Core 2.1 console application. Adding svutil 2.0.2 via nuget ui i get:
Package 'dotnet-svcutil 2.0.2' has a package type 'DotnetTool' that is not supported by project 'TestWS'.
Invalid project-package combination for dotnet-svcutil 2.0.2. DotnetToolReference project style can only contain references of the DotnetTool type
Package dotnet-svcutil 2.0.2 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package dotnet-svcutil 2.0.2 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) / any
Install as global tool i run
dotnet tool install --global dotnet-svcutil --version 2.0.2
or
dotnet tool install --global dotnet-svcutil
but got error, possible causes are corporate proxy authentication and i cannot have proxy url to set it up
final goal is to register a wdsl file. i got it and create manually a .cs class to implement it, but without registering the connected service i'am not able to setup url anche change it for different environment
Upvotes: 0
Views: 5587
Reputation: 23828
This package is a tool for dotnet cli rather than for a project. You should install it into dotnet cli.
Check your environment and you have the enough right to control the PC.
Run cmd as Administrator and then type:
dotnet tool install --global dotnet-svcutil --version 2.0.2
Or you should follow this guidance to add your corporate proxy into global nuget.config
file.
Upvotes: 4