question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build can't find variable because it is not defined

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
damccormcommented, Oct 29, 2019

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

1reaction
robbileifsscommented, Oct 12, 2019

Hi, I’m having the same problem here

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found