服务引用下的哪些文件属于源代码管理.(视觉工作室) [英] Which files under Service References belong in source control. (Visual Studio)

查看:33
本文介绍了服务引用下的哪些文件属于源代码管理.(视觉工作室)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 WPF 和 WCF 的新手,并且有一个 WPF 应用程序,其中包含对 WCF 应用程序的服务引用.我在 Service References/MyService 下创建了各种文件.我不太确定哪些需要进入源代码管理,哪些不需要.

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.

我有一个 .disco、一个 .datasource、一个 .wsdl、3 个 .xsds、2 个 configuration.svcinfos、一个 Reference.cs、和一个 Reference.svcmap.

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.

推荐答案

将它们全部置于源代码控制之下,为什么不呢?

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.

这篇关于服务引用下的哪些文件属于源代码管理.(视觉工作室)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆