I have an SQL project where I need to run certain scripts depending on the value of an SQLCMD variable When I pass the variable on sqlpackage.exe (i.e. /v:var=value) it works as expected, but when I don't pass the variable it fails instead of using the default value I set:
*** An error occurred during deployment plan generation. Deployment cannot continue. Missing values for the following SqlCmd variables:var.
Any idea how to fix this?