简体   繁体   English

使Oracle.DataAccess.dll摆脱垃圾箱

[英]Keep Oracle.DataAccess.dll out of bin

I have a number of C# projects I maintain with Visual Studio (2013). 我有许多使用Visual Studio(2013)维护的C#项目。 Depending on the project, when I build I get an Oracle.DataAccess.dll in my output folder. 根据项目的不同,在构建时会在输出文件夹中得到一个Oracle.DataAccess.dll Why do my projects do this and how can I stop it? 为什么我的项目会这样做,我该如何停止呢?

No, none of my projects include Oracle.DataAccess.dll in its references. 不,我的项目均未在其引用中包含Oracle.DataAccess.dll In fact, my projects use only Sybase databases. 实际上,我的项目仅使用Sybase数据库。

My company has a library dll—we'll call it Company.dll —that may be using the Oracle.DataAccess.dll , and my projects frequently use Company.dll . 我的公司有一个库dll(我们称为Company.dll可能正在使用Oracle.DataAccess.dll ,而我的项目则经常使用Company.dll When I use Company.dll , CopyLocal is set to False , so Company.dll isn't copied to the output folder. 当我使用Company.dllCopyLocal设置为False ,因此Company.dll不会复制到输出文件夹中。 (Our servers have Company.dll in the GAC.) The people maintaining Company.dll have stated that we should not be including Oracle.DataAccess.dll in our builds. (我们的服务器在GAC中包含Company.dll 。)维护Company.dll人员表示,我们不应在构建中包含Oracle.DataAccess.dll

尝试将其放在项目的构建后事件中。

del $(TargetDir)Oracle.DataAccess.dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM