Build can't find variable because it is not defined
See original GitHub issueI have the following code in my Script.PostDeployment.sq (DatabaseProject)
SELECT @solutionDir = REPLACE('$(SolutionPath)','MySoulution.sln','');
There I’m getting the absolute path to the solution (and using it in another place).
This works like a charm when I publish locally. But when I run azure build it fails and I get the following error
SCRIPT.POSTDEPLOYMENT.SQL(17,32,17,32): Build error SQL72008: Variable SolutionPath is not defined.
$(SolutionPath) was the only macro I could get to work locally and now I can’t find out what I could swap it out with.
Any ideas?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Difference between "cant find variable" vs "is not defined"
"Can't find variable" is a Safari message, unlike other browsers. Safari JS message - Citation. Thanks all, I'll take the points.
Read more >ReferenceError: "x" is not defined - JavaScript - MDN Web Docs
The JavaScript exception "variable is not defined" occurs when there is a non-existent variable referenced somewhere.
Read more >ReferenceError: Can't find variable - Codecademy
If you get an error like this it is because you are trying to enter a string as a parameter, but the computer...
Read more >ReferenceError: “process is not defined” - GIMTEC
This error is common in many frontend projects. You might have encountered it a few times, and it might come from a line...
Read more >Troubleshooting Common Errors - Gatsby
You may encounter an error like Error: ReferenceError: window is not defined that you didn't see in development if you reference browser globals...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, sorry for the slow response - would you mind opening this issue in https://developercommunity.visualstudio.com/spaces/21/index.html - that’s the best place to ask non-task specific questions about Azure Devops since this repo is dedicated mostly to tasks
Hi, I’m having the same problem here