将新客户添加到现有解决方案中 [英] adding a new customer to an existing solution

查看:66
本文介绍了将新客户添加到现有解决方案中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个包含大约10个应用程序和解决方案的解决方案5个DLL用于多个客户。要添加新客户,只需更改一个DLL的源,但需要重建整个解决方案。

A solution that has about 10 apps & 5 DLLs is used for multiple customers. To add a new customer the source for only one DLL needs to be changed, but then the whole solution needs to be rebuilt.

问题是:在TFS中如何保持这个新客户与所有以前的客户。

Question is: in TFS how to keep this new customer distinct from all previous customers.

注意源代码仅在该DLL中更改,而不在解决方案的任何其他项目中更改。但是重建解决方案会导致所有其他项目可执行文件根据一个DLL更改而更改。

Note source code is changed in only that one DLL, not in any other project of the solution. But rebuilding the solution causes all other project executables to be changed based on that one DLL change.

随着时间的推移,所有其他项目中的所有源代码都不会更改。

Over time all the source code in all the other projects does not change.

目前使用条件编译解决了这个问题。也就是说,新客户的条件常量被添加到该DLL中,然后将此更改放回到TFS中。但这是解决这个问题的最佳方法吗?

Currently this problem is being solved using conditional compilation. That is, conditional constants for the new customer are added to that one DLL, and then this change is being placed back into TFS. But is this the best way to solve this problem?

推荐答案

嗨汤姆斯,

感谢您在此发帖。

您是否需要构建解决方案?在使用条件编译添加新客户后,您能否正确构建解决方案?

Do you need to build the solution? And can you build the solution correctly after you add the new customer to it with the conditional compilation used?

通常,如果更改解决方案中的项目,解决方案也会相应更改。

Normally the solution will be also changed accordingly if you change the projects within the solution.

没有一种方法可以限制更改,因为这可能会在构建过程中造成意外问题。

There isn’t a good way to restrict the change since that may cause unexpected problems during the building.

所以,如果条件编译没有任何负面影响,它将是你想要的方式。

So, if there are no any negative effects with the conditional compilation, it will be the way you wanted.

最好的问候。


这篇关于将新客户添加到现有解决方案中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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