如何安全地重命名 Common 项目中的类(多个解决方案共享) [英] How to safely rename a class in Common project (shared by multiple solutions)

查看:67
本文介绍了如何安全地重命名 Common 项目中的类(多个解决方案共享)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由多个解决方案共享的通用"项目.

I have a "Common" project shared by multiple solutions.

如果我重命名 Common 项目中的一个类,Visual Studio 将重构使用该类的所有代码,但对于打开的解决方案.是否可以强制 Visual Studio 重构所有使用 Common 项目的解决方案?

If I rename a class in the Common project, Visual Studio will refactor all code that uses that class, but on for the opened solution. Is it possible to force Visual Studio to refactor all solutions that use Common project?

推荐答案

您需要一个单独的解决方案,其中包含引用它的所有项目.

You would need to have a separate solution that included all projects that referenced it.

这篇关于如何安全地重命名 Common 项目中的类(多个解决方案共享)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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