- Go to https://dotnet.microsoft.com/download and install
- If using ZSH (z-shell), add these to your config (
.zshrc
)- Add to your PATH export
:$HOME/dotnet
- Add to the bottom
export DOTNET_ROOT=$HOME/dotnet
- Optional Add an alias for svcutil at the bottom
alias dotnet-svcutil="dotnet svcutil $1"
- Add to your PATH export
- Verify dotnet is installed and working from the command line
- Open terminal and run
dotnet --version
- Open terminal and run
- Install dotnet-svcutil globally:
dotnet tool install dotnet-svcutil --global
- Create a new directory where you want to generate the files (ex:
mkdir wsdlcsharp
) - Enter the dir and initialize the project
cd wsdlcsharp
dotnet new web
- Save the WSDL file locally or use the WSDL URL if available for the following command
dotnet-svcutil [WSDL File or URL]
(ex:dotnet-svcutil ../ws_1.wsdl
) - Look in the directory, you should have a ServiceReference folder with a
References.cs
Open References.cs
in your favorite editor.