Files generated when adding WCF service in Visual Studio 2010 RRS feed

  • Question

  • Hi everyone,

    When adding WCF service in Visual Studio, it generates a lot of files such as .svcinfo, .svcmap(contain Reference.cs which is actual code), .wsdl, .xsd.

    I just want to ask that what is the purpose of each type of file. Can I delete some of them and still be able to invoke methods in service ?

    And finnally, using svcutil command line vs adding service in Visual Studio, which is better ? Is the generated proxies by both ways the same ?

    Any help would be helpful


    Wednesday, August 17, 2011 7:09 AM


  • Some of the files are the metadata files exported by the service (wsdl, xsl). The service reference mechanism of VS uses additional files to map CLR types to the XSD files, and to get a list of urls that are required when updating the service reference.

    If you delete the files, you will not be able to use the "update service reference" option. You will however be able to invoke methods on the service.

    svcutil and the add service reference are similar, but the svcutil has more options such as generating contracts from assemblies instead of generating from wsdl/mex.

    However, the VS "add service reference" is simpler to use.

    Read here for more information regarding the svcutil:


    Please mark posts as answers/helpful if it answers your question.
    Senior Consultant on WCF, ASP.NET, Siverlight, and Entity Framework. Author of Microsoft's Official WCF 4 Course. Co-author of the Microsoft HPC/Azure burst whitepaper.
    Visit my blog: http://blogs.microsoft.co.il/blogs/idof
    • Proposed as answer by Ido Flatow. _ Wednesday, August 17, 2011 9:59 AM
    • Marked as answer by nhclick Wednesday, August 17, 2011 11:16 AM
    Wednesday, August 17, 2011 9:59 AM