I am trying to build C++ solution using this technique. Can you please provide an example on how to do that? I am also not sure how to get logger message, so I can see what error is causing the failure.

The solution you provided for building a solution file through C#(.Net 4.0) works fine. But, I have a situation here where I would like to specify the version number (Major.Minor.Build.Revision) for the build.

I don't want to go by the approach of setting it in AssemblyInfo.cs but rather set it through code. Any thoughts?

@nsf20 - I don't know for sure, but I think the version number must be set in AssemblyInfo.cs... perhaps there is a tool out there or a means of automatically updating that file via code, but I am not certain.

This works fine if the reffered dll is anywhere else except bin folder. What might be the reason for this? The solution which I am building gets built successfuly from visual studio but fails when built by the above code.