当我发布我的ASP.NET Web应用程序时,复制Local = false被忽略 [英] Copy Local = false ignored when I Publish my ASP.NET Web Application

查看:145
本文介绍了当我发布我的ASP.NET Web应用程序时,复制Local = false被忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET Web应用程序有几个引用集。我对其中的几个将Copy Local设置为False,但是当我发布我的应用程序时,它会复制.dlls。我该怎么把它关掉? dll在Web服务器的GAC中注册,我想确保那些是引用而不是本地副本。



谢谢!

解决方案

您是否在本地开发者机器上的GAC中注册了程序集?如果没有,请在GAC注册它们,并且在您在那里构建解决方案时应遵守您的副本本地设置。


I have an ASP.NET Web Application that has several references set. I have Copy Local set to False for several of them, but when I Publish my application it copies the .dlls anyway. How can I turn that off for good? The dlls are registered in the GAC on the web server and I want to make sure that those are references instead of local copies.

Thanks!

解决方案

Do you have the assemblies registered in the GAC on your local developer machine? If not, register them in the GAC there and it should honor your copy local settings when you build the solution there.

这篇关于当我发布我的ASP.NET Web应用程序时,复制Local = false被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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