在一台计算机上安装多个版本的 Active Reports
我必须纠正我支持的客户应用程序之一的一些错误。此应用程序中客户端使用的 Active Reports (DataDynamics) 版本与我的计算机上当前安装的版本不同。
可以在一台计算机上安装 Active Reports 的多个版本,其中某些应用程序可以在 Visual Studio 中使用一个版本的插件,而其他应用程序则使用其他版本。
当您的 dll 未安装在 GAC 中并且未作为插件安装在 Visual Studio 中时,可以轻松更改 Visual Studio 中的引用以使用同一 DLL 的多个版本。
当您在 GAC 中安装了 dll 时,这也很容易,因为您可以在 GAC 中拥有同一 dll 的多个版本。
但是当这是一个安装在Visual Studio中的插件时,我不知道它怎么可能。
我不想使用VMWare之类的软件,因为我必须安装一个全新的环境才能构建新版本。
有人有主意吗?
非常感谢。
I have to correct some bugs of one of the applications of my client that I support. The version of Active Reports (DataDynamics) used by the client in this application is different of the currently installed version on my machine.
It is possible to install multiple versions of Active Reports on a single machine where some applications can use the plugin in visual studio with one version and other applications with other version.
When you have dll that are not installed in the GAC and don't installed as a plugin in visual studio, it's easy to change reference in visual studio to use multiple versions of a same dll.
When you have dll that are installed in the GAC, this is also easy because you can have multiple versions of same dll in the GAC.
But when this is a plugin installed in visual studio, I don't know how it can be possible.
I don't want to use software like VMWare because I have to install a totally new environment to just build a new version.
Anyone have an idea?
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
主要版本可能会相互兼容。例如 AR 2 COM 与任何事物共存。 AR .net 1 与 AR .net 3 共存,AR .net 3 与 AR 6 共存。对于 3 和 6,我可以验证 Visual Studio 中的两组设计器工具均已启用且可用。不过,我认为 AR .net 2 和 AR .net 3 不能很好地协同工作。
但是根据 Data Dynamics,次要版本不能共存。 这符合我的经验,您不能同时安装 3.0 和 3.0 SP1。
所以是的,如果存在重大版本差异,您可以这样做。如果版本差异较小,您需要卸载您的 AR 版本并安装他们正在使用的版本,然后才能进行更改。就我个人而言,我更喜欢在引用的 AR DLL 上设置 CopyLocal = true 并以这种方式随项目一起分发我正在使用的任何版本。它使安装量更大一些,但也使升级 AR 版本对客户端完全透明。他们不需要做任何事情,基本上也不会注意到任何变化。在这种情况下根本不需要安装,必要的 DLL 已包含在您的项目中。
Major versions are likely to play nice with each other. For example AR 2 COM coexists with anything. AR .net 1 coexists with AR .net 3, and AR .net 3 coexists with AR 6. In the case of 3 and 6 I can verify that both sets of designer tools in Visual Studio are enabled and usable. I don't think AR .net 2 and AR .net 3 play nicely together though.
But according to Data Dynamics, minor versions don't coexist. That fits my experience, you can't have 3.0 and 3.0 SP1 installed at the same time.
So yes, you can do this if you have major version differences. If they're minor version differences, you need to uninstall your version of AR and install the one they're using before you can make changes. Personally I prefer to set CopyLocal = true on the referenced AR DLLs and distribute whatever version I'm using along with the project that way. It makes the install a bit bigger, but it also makes upgrading your AR version completely transparent to the client. They don't have to do anything and basically don't notice anything changed. There's no install at all in that case, the necessary DLLs are included with your project.