tags:

views:

89

answers:

2

I'm looking in the environment but I can't see anything that I could use. Any ideas?

I'm trying to submit a patch for in Waf a bug that only appears when running the build under MSBuild (...yes I know, it sounds crazy but we're driving our Teamcity server using MSBuild).

A: 

Maybe this process itself can check if there is any MSBuild.exe instance running? That can be an easy hack, though it does not answer your question.

Lex Li
+2  A: 

Whilst I can't tell you exactly how to do it, I know you can do this.

You should look at functionality to find your parent process and then it's executable name to determine if it's MSBuild.exe or not.

Hope that helps to at least point you in the right direction.

Tom Duckering
Its the best answer I've had yet - I'll accept tomorrow if no-one else comes closer. This is a Python based tool so finding the parent process shouldn't be too hard.
jkp