简体   繁体   English

如何轻松修改多个项目的参考?

[英]How to modify reference for multiple projects easily?

I have a solution, containing 20 projects, refer to the same assembly. 我有一个解决方案,包含20个项目,并且引用相同的程序集。 Now I change the path of the assembly, I must modify the reference path for each project one by o 现在,我更改了程序集的路径,必须修改每个项目的引用路径

Do not refer the reference assembly directly, Instead you should put reference to some common location where this reference assembly is kept, then all projects should reference this assembly from common location instead of actual path of referenced assembly. 不要直接引用参考程序集,而应该将引用放置到保存该参考程序集的某个公共位置,然后所有项目都应该从公共位置而不是参考程序集的实际路径来引用该程序集。

Doing this would have saved your time as original change in path of original assembly doesn't matter to all projects as they are referring common location. 这样做会节省您的时间,因为原始装配路径的原始更改对于所有引用共同位置的项目都无关紧要。

So, whenever original path of referenced assembly is changed you just need to put the referenced assembly to common location. 因此,每当更改参考装配的原始路径时,您只需要将参考装配放在公共位置即可。

Hope this will help! 希望这会有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM