Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What files I need to check-in after adding a web service reference?

I have a (new) project and it has a web service reference. It has following structure:

<Folder: project folder>
    <File: source file 1>
    <File: source file 2>
    <File: source file .>
    Folder: Web References
        Folder: MyService
            File: Reference.map
            File: Reference.cs
            File: MyService.xsd
            File: MyService0.xsd
            File: MyService.wsdl
            File: MyService0.wsdl
            File: MyService0.disco

I am about to check-in the source code to version control system. Which files I must check-in?

like image 269
Hemant Avatar asked Jun 19 '09 08:06

Hemant


People also ask

How do you add references to a Web service?

To add a Web Reference You can also open the Add Web Reference dialog box in the Solution Explorer pane by right-clicking References and selecting Add Web Reference. In the Web reference name box, rename the Web reference toExcelWebService. Click Add Reference to add a Web reference for the target Web service.

How do I add a Web service reference in Visual Studio 2015?

To add a Web reference to a project. In Solution Explorer, right-click the name of the project to add the Web service to and then click Add Web Reference. The Add Web Reference dialog box is displayed. In the URL box, enter the URL of the Web service to use.

How do I add a service reference in Visual Studio 2012?

1 In Solution Explorer, right-click the name of the project that you want to add the service to, and then click Add Service Reference. The Add Service Reference dialog box appears. 2 In the Add Service Reference dialog box, click the Advanced button. 3 The Service Reference Settings dialog box appears.


1 Answers

Just to add differing opinion in case someone is in similar situation as mine.

I worked on a project where we aggressively developed a web service API, and we used Perforce as our source control. This caused numerous issues when updating service references, which we did many times a day. We simplified this process by checking in only two files:

Reference.cs

As it contains all the generated compiled code, and:

Reference.svcmap

As it contains configuration for code generation, such as endpoint used to refresh reference, type of collection to be used,etc.

All the other files as far as I can tell are just artifacts created during code generation that have no effect on executable code.

like image 54
Sebastian K Avatar answered Sep 20 '22 16:09

Sebastian K