我的 Web 服务器上部署了一个桌面应用程序,该应用程序抛出错误,指出找不到 SqlServerSpatial.dll。如果我手动将其添加到我的部署包中,它就可以正常工作。但是,我不想这样做...我想在构建项目时自动包含 dll。问题是,当我尝试在 Visual Studio 中添加引用时,它显示:
A reference to '[Path]\SqlServerSpatial.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component."
我该怎么办?
最佳答案
您是否尝试过将其作为现有文件添加到项目的根目录并将其设置为“复制到输出目录”
关于c# - 如何添加对 SqlServerSpatial.dll 的引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33379528/