在 VS2010 中更新我的服务引用导致我在 TFS Pending Changes 中添加了大量文件

发布于 2024-11-14 21:46:27 字数 434 浏览 1 评论 0原文

我有一个包含多个 Silverlight 4.0 应用程序的解决方案,它们都通过通用的 Silverlight 4.0 程序集引用相同的 WCF 服务。也就是说,每个 Silverlight UserControl 应用程序都引用一个名为“ServiceClient”的 Silverlight 程序集(也在解决方案中),以获取其通用的 OperationContract 信息。这些 UserControl 应用程序引用该程序集。

当我更改 WCF 服务时,我必须更新“ServiceClient”程序集。这会导致大量 *.datasource 文件以及 ServiceName.xsd、ServiceNameN.wsdl、ServiceNameN.disco(其中 N 是任意整数)。所有这些文件都在 TFS 中列为待处理的更改。然后我必须小心地撤消可能数百个特定的待处理更改。有没有办法限制文件生成或至少抑制它们显示为待处理的更改?

I have a solution with multiple Silverlight 4.0 applications, which all reference the same WCF service through a common Silverlight 4.0 assembly. That is each of the Silverlight UserControl applications reference a Silverlight assembly called "ServiceClient", also in the solution, to get their common OperationContract information. These UserControl apps reference that assembly.

When I change the WCF service I must update the "ServiceClient" assembly. This causes a large number of *.datasource files, and ServiceName.xsd, ServiceNameN.wsdl, ServiceNameN.disco (Where N is an arbritrary integer). All of these files are listed as pending changes in TFS. I must then carefully undo maybe hundreds of specific pending changes. Is there a way to limit file generation or at least supress their showing up as pending changes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

泪痕残 2024-11-21 21:46:27

如果您不“撤消”待处理的更改并签入,会发生什么?

如果文件已签入,则它们已更改。这不是您想要的吗?

我有时会看到 VS/TFS 将文件设置为待处理签入 -但是当我执行签入时,文件列表被清除并且文件没有签入(因为文件中实际上没有任何更改)

也许您正在努力解决一个非问题。

If you do not 'Undo" the pending changes and check-in, what happens?

If the files are checked-in then they were changed. Isn't that what you want?

I sometimes see VS/TFS set files to pending check-in, but when I perfrom the check-in the file list is cleard and the files are not checked-in (because there was really nothing changed in the files).

Maybe you are struggling with a non-issue.

乞讨 2024-11-21 21:46:27

It's not clear why you are undoing the automatically generated changes after a service reference update. When you buy into the VS Service Reference method that's part of the baggage.

If you want more control of the client generation process, you can use the SvcUtil command line utility. You will have to add build tasks to your projects to perform this if you want to mimic the Add Service Reference approach. I'd recommend going with a single project wired to use SvcUtil to produce a client assembly that all the other projects would reference. You still would need to add the WCF config file to each of the projects that reference your client assembly though.

故乡的云 2024-11-21 21:46:27

您可以只引用 tfs 中包含服务合同的库,然后使用该合同创建到您的 wcf 服务的通道吗?这也意味着您不必再使用服务引用,并且还将 silverlight 应用程序与服务解耦。

Could you just reference the library in tfs which has you're service contracts, then use the contract to create a channel to your wcf service. Which would also mean you don't have to use a service reference anymore and also decouples your silverlight application from your service.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文