English 中文(简体)
VS中C级重构
原标题:Inter-solution C# refactoring in VS

我有办法A,界定了公共类别Foo,以及提及A和利用Foo的解决方案B。 我将Foo改称A中的Bar,并使用“最新参考资料”特征,但只是更新了目前解决办法中的参考资料。 我如何在解决办法B中(自动)更新这些内容?

(注:搜查和搜查;替代是一种选择,因为它没有考虑到环境——可能还有其他符号称为Foo。)

最佳回答

我也存在同样的问题,我这样做的就是建立一个“主人”的解决办法,包括所有受影响的项目;我在这方面做些什么(利用ReSharper)。 它运作良好。

我认为,你需要采取同样的做法——毕竟,一种工具可以猜测,你有其他解决办法,参照同一项目,需要加以调整?

问题回答

你可以利用ReSharper从事这项工作。

我认为,在瑞士联邦调查中没有任何办法这样做,但可能还有类似于“Resharper”(我从未使用过)。

您能否在单一解决办法中临时增加所有项目,并利用项目参考资料将其联系起来? 这将使所有提及Foo的内容都能重新命名。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签