A while back I talked about the new feature available in MSBuild 4 Inline Tasks in.
In the previous examples I have use C# as my language of choice. C# is not your only choice you can also use VB.Net but you can also use JavaScript! When MSBuild creates the class for the inline task it uses CodeDom to do so, and JavaScript is one of its supported languages. Perhaps its actually called JScript. In any case take a look at the project file below which shows this in action.
Here you can see that I created a new inline task called, Jsex01 and its written in Javascript. Then inside of the PrintValues target this task is called. If you execute the PrintValues target the result will be what you see below.
So if you prefer JavaScript to C# or VB.Net then you should try this out!
Sayed Ibrahim Hashimi
Comments are closed.