无需重新编译该项目C#DLL更新 [英] C# update DLL without recompiling the project

查看:384
本文介绍了无需重新编译该项目C#DLL更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了一个小程序一起,将被包含在安装文件中的DLL文件的引用。

i have written a small program with a reference to a dll file that will be included in the setup file.

我仍然需要的是更新的方式DLL(如果我改变了一些功能),而不需要再重新下载整个程序,只需更换dll文件...

what i still need is a way to update the dll (in case i change some functions), without the need to redownload the whole program again, just replace the dll file ...

这可能吗?

我只是读的地方,我必须更新为新DLL版本的xml文件,但我真的需要完整的步骤,以成功地更新DLL ..

i just read somewhere that i have to update the xml file with the new dll version, but i really need the full steps to update the dll sucessfully ..

任何帮助非常感谢..
非常感谢

any help is really appreciated.. thanks a lot

< STRONG>更新

我真的不知道该说些什么......
两种方式真的很棒......
谢谢很多的帮助...
I将考验他们tongiht这里再次写答案...

i really dont know what to say... both ways are really great... thanks a lot for the help... i will test them tongiht and write the answer here ...

感谢:)

推荐答案

如果您已经分布式应用程序时,您可以重定向大会通过配置结合。

If you already distributed your application, you can redirect the assembly binding by configuration.

您可以通过在
应用或机器配置
使用的文件重定向项组装结合
引用到
组件的另一个版本。您可以重定向到
.NET框架组件,第三方
组件,或您自己的
的应用程序集的引用。

You can redirect an assembly binding reference to another version of an assembly by using entries in the application or machine configuration files. You can redirect references to .NET Framework assemblies, third-party assemblies, or assemblies of your own application.

http://msdn.microsoft.com/en -us /库/ 2fc472t2%28VS.71%29.aspx

另一篇文章有​​关的Configuring集绑定重定向

Another article about Configuring Assembly Binding Redirection.

这篇关于无需重新编译该项目C#DLL更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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