Which files under Service References belong in sou

2019-03-22 16:36发布

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.

标签: wpf wcf tfs
3条回答
成全新的幸福
2楼-- · 2019-03-22 17:08

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

查看更多
男人必须洒脱
3楼-- · 2019-03-22 17:13

How about adding all of them to the source control in the first instance and then remove those that never change later?

查看更多
ゆ 、 Hurt°
4楼-- · 2019-03-22 17:35

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.

查看更多
登录 后发表回答