juliano.net
juliano.net

Reputation: 8177

How can I use in my script (.proj) the MSBuild Arguments set in my Build Definition

I need to define some fixed version info in my Build Definition, so I thought about setting the MSBuild Arguments option with this version info. However, I don't know how can I get this arguments values in my MSBuild script.

Is it possible?

Upvotes: 2

Views: 251

Answers (1)

Dylan Smith
Dylan Smith

Reputation: 22255

You get them the same way you get any other MSBuild arguments. So for example if you set the Workflow Argument to:

MSBuild Arguments: /p:foo=99

From your MSBuild script you access it by doing $(foo)

Upvotes: 3

Related Questions