是否有一个重构工具,跨解决方案的文件有效? [英] Is there a refactoring tool that works across solutions files?

查看:104
本文介绍了是否有一个重构工具,跨解决方案的文件有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有的重构工具的C#和VB.Net,我已经看到只考虑单一的Visual Studio解决方案的源代码。

All the refactoring tools for C# and VB.Net that I have seen only consider the source code in a single visual studio solution.

有关好还是坏,我们的(许多相关的程序)系统是分散在许多解决方案文件,但是:

For better or worse, our large (many related programs) system is spread over many solution files, however:


  • 所有的代码如下一个单一的Windows文件夹。

  • 我们的恶性基础构建系统,建立在Windows文件夹中的所有文件来生成一个DLL(有点复杂,然后这一点,但对于这个问题并不重要)。

  • 因此ALL的.cs和单根目录下的.vb文件是系统的一部分。

所以我要寻找的重构和逆向工程工具,拿一个文件夹作为输入并作用于该文件夹下的所有文件。

So I am looking for refactoring and reverse engineering tools that take a single folder as input and act on all files below that folder.

(该工具可能需要一些帮助来决定什么是公,内部的意思,但大部分时间内是指在同一代码树时,代码树是包含代码和所有子文件夹的文件夹。)

(The tools may need some help to decide what "public" and "internal" means, however most of the time "internal" means "in the same code tree" when a "code tree" is a folder that contains code and any child folders.)

现在我贪婪,我想的工具创造了很多所有已完成,并能够重放的重构功能重构。然后,我可以尝试一下理想的,如果他们的工作,扔掉我的代码,获取最新的代码,你做的重构和签入代码之前,任何人都改变了文件。 (同样,对于何时分支需要合并)

Now I am being greedy, I would like the tools to create a lot of all the refactorings that have been done and to be able to replay the refactorings. Then I could try out ideal and if they work, throw away my code, get the latest code, you do the refactorings and checkin the code before anyone else changes the files. (Likewise for when branches need merging)

推荐答案

在过去,我已经做了什么PRATIK曾建议,拉着所有项目到一个单一的只是为了重构的目的的解决方案。然后,我个人会使用 ReSharper的的每一次。

In the past I have done what Pratik has suggested and pulled all projects into a single solution just for the purposes of refactoring. Then personally I would use Resharper every time.

这篇关于是否有一个重构工具,跨解决方案的文件有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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