Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2012 Visual Studio 2012间接引用未将DLL复制到bin_Visual Studio 2012_Dll_Dll Reference - Fatal编程技术网

Visual studio 2012 Visual Studio 2012间接引用未将DLL复制到bin

Visual studio 2012 Visual Studio 2012间接引用未将DLL复制到bin,visual-studio-2012,dll,dll-reference,Visual Studio 2012,Dll,Dll Reference,我正在使用Visual Studio 2012。正在讨论的项目在VB.Net中 我有一个Web项目(MVC3),它引用了另一个项目,我们称之为webLogic.dll,它基本上是从网站到数据库的中间环节。webLogic.dll引用了我们的dataStorage.dll(其中包含SQL和数据库连接详细信息等),因此Web项目没有对dataStorage.dll的引用。其目的并不是说它完全相关,而是将其设置为使网站不知道或不关心数据是如何存储的 问题是,如果在解决方案上运行清理然后重新生成,则不会

我正在使用Visual Studio 2012。正在讨论的项目在VB.Net中

我有一个Web项目(MVC3),它引用了另一个项目,我们称之为webLogic.dll,它基本上是从网站到数据库的中间环节。webLogic.dll引用了我们的dataStorage.dll(其中包含SQL和数据库连接详细信息等),因此Web项目没有对dataStorage.dll的引用。其目的并不是说它完全相关,而是将其设置为使网站不知道或不关心数据是如何存储的

问题是,如果在解决方案上运行清理然后重新生成,则不会将dataStorage.dll复制到Web项目的bin目录,但会复制webLogic.dll。显然,当调试失败时,这是非常糟糕的

但是,如果我随后在解决方案上运行重建(不首先执行清理),则dataStorage.dll会被复制到Web项目的bin文件夹中

有没有人知道为什么会发生这种情况,或者我可以做些什么来确保在不添加引用的情况下复制dataStorage.dll