简体   繁体   English

在Visual Studio版本中找出DLL的来源。

[英]Find out where DLL is coming from in Visual Studio build.

I'm seeing a DLL file appear in my build's bin folder when building from Visual Studio, but I'm unsure of where it is coming from. 从Visual Studio进行构建时,我看到DLL文件出现在我的构建的bin文件夹中,但是我不确定它来自何处。 The DLL is Microsoft.SqlServer.Types.dll. DLL是Microsoft.SqlServer.Types.dll。 My project does reference Microsoft.ReportViewer.WinForms.dll, so my original thought was that it was being copied as some sort of dependency. 我的项目确实引用了Microsoft.ReportViewer.WinForms.dll,因此我最初的想法是将其复制为某种依赖项。 However, I've seen the same code built on another machine, and the Microsoft.SqlServer.Types.dll file is not copied into the bin. 但是,我看到了在另一台计算机上构建的相同代码,并且Microsoft.SqlServer.Types.dll文件未复制到垃圾箱中。 Does anyone have any insight on this? 有人对此有见识吗?

Check if Microsoft.SqlServer.Types.dll is registered in GAC. 检查Microsoft.SqlServer.Types.dll是否在GAC中注册。

  • Click Start --> Run 单击开始->运行
  • Type "Assembly" and hit enter 输入“ Assembly”,然后按Enter
  • Check if Microsoft.SqlServer.Types.dll file is present. 检查是否存在Microsoft.SqlServer.Types.dll文件。

This file may be in GAC on the machines where it does not gets copied to bin automatically. 该文件可能位于未自动复制到bin的计算机上的GAC中。 Whereas on your machine, I doubt this file is not in GAC. 在您的计算机上,我怀疑此文件不在GAC中。

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

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