需要帮助保持.dll的升级 [英] Need help keeping .dll's upated

查看:73
本文介绍了需要帮助保持.dll的升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,



我有从我们的Entity Framework项目引用.dll'的WCF服务,我已经将WCF发布到我们的一个服务器上。但是,无论何时我们在Entity项目上进行迁移,WCF都会在调用时开始发送错误。它告诉我们自创建数据库以来支持上下文的模型已经改变。如果我将这些.dll'再次复制到WCF服务并再次发布我没有问题。有没有更简单的解决方案?



提前谢谢。

解决方案

我认为你应该在.net中加入GAC ..



它将继续更新项目中的程序集,你可以在machine.config中添加一个策略,该策略将重定向到所述程序集。





纠正我,如果我错了。


当您添加对项目的引用时,右键单击dll引用并设置CopyLocal =真

Good Morning,

I have WCF service that references .dll''s from our Entity Framework project and I have published the WCF to one of our servers. However whenever we do a migration on the Entity project the WCF starts sending errors whenever called. Its telling us the model backing the context has changed since the database was created. If I copy those .dll''s again to the WCF Service and publish again I have no problems. Is there any easier solution?

Thanks in advance.

解决方案

I think you should you GAC in .net..

It will keep updating assemblies at your project, and you could add a policy in machine.config which would redirect to the said assembly..


correct me if i m wrong.


When you add the reference to the project, right click the dll reference and set CopyLocal=true


这篇关于需要帮助保持.dll的升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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