Hi @InspiredUser33157 ,
Is there a way to capture the exact cmd line parameters used by Visual Studio 2019 when a Web Services is Added or Updated?
When you build a project or solution in Visual Studio, the entire command line used to run the compiler (csc.exe, including switches and parameters) is displayed in the Output window. If you don't see it there, check the Verbosity level by going to:
Options > Projects and Solutions > Build and Run > MSBuild project build output verbosity
and then copy the output, search cl.exe and link.exe.
How can I exactly mimic the exact svcutil command line parameters that VS2019 is using?
I do not quite understand you. Do you want to use Svcutil.exe or the command line of VS2019?
You can check the documentation for detailed instructions.
https://learn.microsoft.com/en-us/dotnet/framework/wcf/servicemodel-metadata-utility-tool-svcutil-exe
https://learn.microsoft.com/en-us/dotnet/core/additional-tools/dotnet-svcutil-guide?tabs=dotnetsvcutil2x
https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-window?view=vs-2022
https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.