我们正在TFS SQL 2015中进行数据库发行。计划是使用字符串连接和变量。下面的错误消息,
对于我们的部署版本,我们有sqlpackage:
C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe
方法1:
/Action:Publish /SourceFile:"$(build.artifactstagingdirectory)"\Datawarehouse.dacpac
/Profile:"$(build.artifactstagingdirectory)"\Dev.Publish.xml
方法2(将引号切换为结尾):
/Action:Publish /SourceFile:"$(build.artifactstagingdirectory)\Datawarehouse.dacpac"
/Profile:"$(build.artifactstagingdirectory)\Dev.Publish.xml"
由于某些原因,TFS不会在日志中填充变量。我们该如何进行?我们要用固定的字符串连接一个变量。
错误消息:
2018-12-13T18:43:49.0945356Z *** Error parsing connection string: Could not find a part of the path 'D:\testabcd....\$(build.artifactstagingdirectory)\Dev.Publish.xml'..