Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebReference and Source Control

I have a C# application that uses several web services which were added to my project as web references. I want to know what files i should check into source control.

in my project there is a folder structure from my project directory that looks like this:

Project
    Web References
        WS
            WS.wsdl
            Reference.cs
            Reference.map
            ...misc .datasource and .xsd files

Which of these files should i put in source control?

Thanks

like image 503
luke Avatar asked Feb 06 '26 15:02

luke


1 Answers

Suggest keeping all those files under source control, but only for completeness for other developers using your project's source code, or having to perform a Checkout/Get Latest on any new machine (after your dev machine's hard drive dies, etc.).

Once Visual Studio builds the web reference, all those files are built and remain unchanged until you 'Refresh Web Reference'. If you modify them yourself, i.e. change a datatype, or remove an XML attribute (I've had to do that for some obscure runtime SOAP problem), then check those changes in as well.

like image 96
p.campbell Avatar answered Feb 09 '26 06:02

p.campbell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!