Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.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
.net 在dacpac文件中包含DLL_.net_Sql Server_Dll_Smo_Dacpac - Fatal编程技术网

.net 在dacpac文件中包含DLL

.net 在dacpac文件中包含DLL,.net,sql-server,dll,smo,dacpac,.net,Sql Server,Dll,Smo,Dacpac,我希望使用SMO将dacpac部署到远程SQL环境中,远离我自己的开发机器。在我的项目中,我引用了一个.dll文件,当我按下“BuildSolution”时,它被输出到我的构建目录中 是否可以将.dll文件与dacpac捆绑在一起,或者我必须将我的引用文件与dacpac文件一起放在远程服务器上的指定文件夹中才能引用它们 当前,我在远程环境中部署时收到错误“没有为引用dll提供任何文件”,因为即使我将“Copy Local”设置为true,dacpac也没有在其中包含dll 打开Model.xml

我希望使用SMO将dacpac部署到远程SQL环境中,远离我自己的开发机器。在我的项目中,我引用了一个.dll文件,当我按下“BuildSolution”时,它被输出到我的构建目录中

是否可以将.dll文件与dacpac捆绑在一起,或者我必须将我的引用文件与dacpac文件一起放在远程服务器上的指定文件夹中才能引用它们

当前,我在远程环境中部署时收到错误“没有为引用dll提供任何文件”,因为即使我将“Copy Local”设置为true,dacpac也没有在其中包含dll

打开Model.xml时,我可以看到该文件指向引用在硬盘上的位置,如何将其更改为动态查看输出的dacpac文件夹


谢谢

仅在部署时,您需要DLL和DACPAC。成功部署后,既不需要DACPAC也不需要DLL(SQL Server如何才能找到它们——它只能在GAC中找到程序集或由CREATE ASSEMBLY创建的程序集)。您可以检查为部署创建的SQL脚本,您将看到所有DLL都作为创建/更改程序集包含在其中


请务必使用最新版本的SSDT。

您是否找到了解决此问题的方法或解决方法?