I came across this yesterday after changing the project settings for my database project (right-click the database project, click properties, then click Project Settings).
I checked the Create script parameter (.sql file) and everything continued to work as usual for me. But when another team member checked the last update, they could not build and received an error about missing values โโfor SqlCmd variables. It still worked for me until I checked the new version of the source and started getting the same error.
To fix, I just turned off the Create script (.sql file) option and everything was fine again.
source share