如何通过分发 .dll 复制引用的 dll 功能. [英] How to replicate referenced dll functionality with distributing .dlls.

查看:42
本文介绍了如何通过分发 .dll 复制引用的 dll 功能.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 vb.net 应用程序,我希望在不久的将来能够分发.

I have a vb.net application I'm looking to be able to distribute in the near future.

我不是最初的架构师,之前的开发人员引用了一些 GPL 许可下的 .dll.

I'm not the original architect and the previous developer referenced a handful of .dll's that are under a GPL license.

包含这些 dll 的所有软件均可在线免费获得,因此我的客户可以在需要该功能时下载并安装它们.所以我不必分发 DLL.

All of the software that includes these dll's are freely available online, so my customer can go download and install them if they need that functionality. So I don't have to distribute the DLLs.

目前,它们在项目文件的参考"部分下被引用.我的问题是,如何以类似于引用"的方式解析这些 dll,但在运行时.

Currently they are referenced under the "Reference" part of the project file. My question is, how do I resolve these dll's in a way similar to how the "references" dons it, but at runtime.

我的计划是在注册表中搜索这些 dll 的位置并引用该位置,但鉴于 .dll 的文件位置,我该如何将该代码拉"到我的项目中.

My plan is to search the registry for the location of these dll's and reference that location, but given the file location of the .dll, how do I "pull" that code into my project.

谢谢

推荐答案

这是唯一有效的解决方案

This is the only solution that works

http://mylifeandsql.com/2018/03/26/复制读取错误/

您也可以使用以下命令开始迁移

also you can just start your migration with the following command

Sql(@"SET TRANSACTION ISOLATION LEVEL READ COMMITTED");

这将复制 dll 更改,例如向复制表添加新列

This will replicate dll changes like adding new column to a replicated table

你还会发现该栏会自动添加到复制文章中>列

You will also find that the column is automatically added to replicated articles > columns

无需创建新快照,也无需将同步设置为重新初始化☺

No need to create a new snapshot nor set the sync to re-initialization ☺

谢谢

这篇关于如何通过分发 .dll 复制引用的 dll 功能.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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