Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which files under Service References belong in source control. (Visual Studio)

Tags:

wcf

wpf

tfs

I am new to both WPF and WCF, and have a WPF app that has a service reference to a WCF one. I have all sorts of files created under Service References/MyService. I am not so sure which need to go into source control and which don't.

I have a .disco, a .datasource, a .wsdl, 3 .xsds, 2 configuration.svcinfos, a Reference.cs, and a Reference.svcmap.

I assume most are generated, yet I don't know which belong to source control and which do not.

like image 656
Kurt Avatar asked Dec 08 '09 14:12

Kurt


2 Answers

Put all of them under source control, why not?

It's part of your code and it's needed to compile the project. If you use an automated build system, then you don't want that script to generate this code again, right?

As a bonus you'll get a history of changes to your service interface, could be useful too.

like image 193
Gerrie Schenck Avatar answered Sep 23 '22 08:09

Gerrie Schenck


All of those files are source files, so they all belong under source control.

like image 2
John Saunders Avatar answered Sep 24 '22 08:09

John Saunders