如何使用重构工具,当你有多个Visual Studio的解决方案? [英] How use refactoring tools when you have multiple visual studio solutions?
问题描述
我们有我们的产品两眼视力工作室解决方案:一个是我们的可重用组件(Core.sln),一个为我们的产品(Product.sln)。从产品及解决方案项目引用(文件引用),以我们的核心的组件。
We have two visual studio solutions for our product: one for our reusable components (Core.sln) and one for our product (Product.sln). Projects from the Product solution have references (file references) to assemblies of our core.
在一个解决方案中工作时,重构功能将不会在其他的解决办法折射。在核心类重命名方法,将其重命名在核心解决方案,但不是在产品及解决方案。
When working in one solution, the refactoring features will not refractor in the other solution. Renaming a method in a core class renames it in the Core solution but not in the Product solution.
有没有一种方法使用多个解决方案时,从重构工具中受益?做商业的重构产品(ReSharper的,代码拉什)有相同的限制?
Is there a way to benefit from refactoring tools when using multiple solutions? Do commercial refactoring products (Resharper, Code Rush) have the same limitation?
推荐答案
我想创建引用所有相关项目的解决方案为了做到这一点。
I would create a solution that references all relevant projects in order to do this.
是的,商业重构产品具有相同的限制。毕竟,这个工具应该怎么知道,你,你的某个磁盘驱动器上,有一个.csproj的一些cs文件躺在附近,它引用一个特定的方法叫什么名字?
Yes, commercial refactoring products has the same limitation. After all, how should the tool know, that you, somewhere on your disk drive, has a .csproj and some .cs file lying around, that references a specific method name ?
这篇关于如何使用重构工具,当你有多个Visual Studio的解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!