我已经编写了一个小程序,其中引用了一个将包含在安装文件中的 dll 文件。
我仍然需要一种更新dll的方法(以防我更改某些功能),而无需再次重新下载整个程序,只需替换dll文件...
这可能吗?
我刚刚在某处读到我必须用新的 dll 版本更新 xml 文件,但我确实需要完整的步骤才能成功更新 dll...
非常感谢任何帮助......非常感谢
更新
我真的不知道该说什么...两种方式都很棒...非常感谢您的帮助...我今晚会测试它们并将答案写在这里...
再次感谢:)
最佳答案
如果您已经分发了您的应用程序,则可以通过配置重定向程序集绑定(bind)。
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/library/2fc472t2%28VS.71%29.aspx
另一篇关于 Configuring Assembly Binding Redirection 的文章.
关于C# 更新 DLL 而无需重新编译项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2771143/