Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Accessing SqlCommandVariables in MSBuild

$
0
0

Hello,

I am trying to get familiar with VS2010 Databaseprojects and deployments with it. I am hoping somebody can help me with this.

How do I access SqlCommandVariables in the .dbproj file. I am trying to use Target="BeforeBuild" to copy over certain files to a location depending on the value of a SQLCmdVar, say 'TestVar'

I came across many posts on 'overriding value of sqlcmdvar in MSBuild' but that is Not what I'm looking for and I tried using/tweaking those snippets but no luck yet.

When I set verbosity='Diagnostic", and build the project, I get a description in the build output:

 Task "Copy" skipped, due to false condition; ('$(TestVar)' == 'DEV') was evaluated as ('' == 'DEV').

So, can we access sqlcmdvars in the 'BeforeBuild' Task in MSBuild ??

Any help is appreciated.

Thanks!


Viewing all articles
Browse latest Browse all 2763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>