我无法意识到自己做错了什么,也无法在互联网上找到一些东西。
有谁知道以下部署阻止器的原因是什么?
可能这就是DacPac冒泡的众多设置。
Error SQL72014: SQL Execution error: A fatal error occurred. The variable DatabaseName could not be found.
Error SQL72045: Script execution error. The executed script:
USE [$(DatabaseName)];
Error SQL72014: SQL Execution error: A fatal error occurred. Incorrect syntax was encountered while USE [$(DatabaseName)]; was being parsed.
Error SQL72045: Script execution error. The executed script:
USE [$(DatabaseName)];
将"CommentOutSetVarDeclarations"设置为 false 或在 XML 中删除它。
对于 Visual Studio UI:
发布数据库(弹出窗口(->高级...(按钮(->常规(选项卡(->
取消选中Comment out SetVar declarations
偶然地,我点击了它。
然而我找到了它:https://stackoverflow.com/a/15158985/390940 ((