We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
我最终只编写了一个简单的控制台应用程序,它遍历所有文件夹并使用正则表达式来查找许多文件之间的连接。它允许我收集所有类名,并通过将数据转储为 XML 来解决我的问题,然后用它来创建所有实际连接。我成功地将代码从数百个 ASCX 文件减少到不到 60 个文件,因为生成的信息我可以将其重构为更实用的结构。
这是一项繁重的工作,不幸的是,在工作时间。我的雇主是该代码的正式所有者,因此我不能否认它。这也不是很好的代码。对于一次性解决方案来说功能足够了。
I ended up just writing a simple console application that walks through all folders and uses regular expressions to find the connections between the many files. It allowed me to collect all class names and solve my problem by dumping data as XML which I then used to create all the practical connections. I've managed to reduce the code from over hundreds of ASCX files to less than 60 files because of the resulting info which I could then refactor into a more practical structure.
It was a lot of work and unfortunately, during work hours. My employer is officially owner of this code so I can't shate it. It's not very nice code either. Just functional enough for a one-shot solution.