如何修改MySQL连接器的源$ C ​​$ c和我的电脑上安装吗? [英] How do I modify the source code of the MySQL Connector and install it on my PC?

查看:131
本文介绍了如何修改MySQL连接器的源$ C ​​$ c和我的电脑上安装吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

总之,什么是一个需要采取以修改连接器的源代码和Windows安装的步骤是什么?

In short, what are the steps that one needs to take in order to modify the source of the connector and install it in Windows?

我有MySQL连接器/ .NET版本6.1.2安装在我的机器上,但我发现一个例外,每日期时间为0000-00-00的值。这个异常打破了我的申请。

I have the MySQL Connector/.NET Version 6.1.2 installed on my machine, but I'm getting an exception for every DateTime with a value of '0000-00-00'. This exception breaks my application.

在我的解决方案,我下载的源$ C ​​$ C的连接器,改变了异常等等,而不是抛出一个异常,它返回日期0001-01-01 00:00:00。虽然我是能够修改code,甚至编译的DLL(注:我注释掉大会参考ConnectorNet),我不知道如何安装DLL到我的电脑。显然,我不能简单地替换DLL中的全局程序集缓存,因为我的自定义DLL不是强类型。

As I solution, I downloaded the source code for the connector and changed the exception so that instead of throwing an exception, it returns the date '0001-01-01 00:00:00'. Although I was able to modify the code and even compile the DLL (NOTE: I commented out the Assembly reference to ConnectorNet), I can't figure out how to install the dll onto my computer. Apparently I'm not able to simply replace the DLL in the Global Assembly Cache because my custom DLL is not strongly typed.

在总和,什么是一个需要采取以修改连接器的源极和Windows安装它的步骤是什么?

In sum, what are the steps that one needs to take in order to modify the source of the connector and install it in Windows?

感谢。

推荐答案

您需要原始私钥。

在GAC大会有一个强名称,并且加密散列是其中的一部分。

Assemblies in the GAC have a 'strong name', and an encrypted hash is part of that.

只有私钥的拥有者可以创建具有相同的公共keytoken(数字签名)的组件。

Only the owner of the private key can create an assembly with the same public keytoken (digital signature).

您要么需要密钥对(一.SNK或.pfx文件)签署新的DLL,或者你将不得不重新编译使用该DLL的应用程序。

You either need the key-pair (a .snk or .pfx file) to sign your new DLL or you will have to recompile the applications that use the DLL.

这篇关于如何修改MySQL连接器的源$ C ​​$ c和我的电脑上安装吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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