WCF Client Proxy generation

InspiredUser33157 216 Reputation points
2022-07-06T12:52:59.563+00:00

Is there a way to capture the exact cmd line parameters used by Visual Studio 2019 when a Web Services is Added or Updated?
How can I exactly mimic the exact svcutil command line parameters that VS2019 is using?

Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lan Huang-MSFT 30,191 Reputation points Microsoft External Staff
    2022-07-07T02:32:55.137+00:00

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.