Dynamic Post-build event in Visual Studio

Posted by SSumner on Programmers See other posts from Programmers or by SSumner
Published on 2012-06-18T15:38:57Z Indexed on 2012/06/18 21:23 UTC
Read the original article Hit count: 187

Filed under:
|

I am building a video server application that has multiple projects in Visual Studio. One project, the video server project, needs to call a shell script to generate documentation. This works fine when you build the video server project, because the script is simply

cd "$(SolutionDir)"
start documentationgenerator

However, there is also an SDK project that, when built, also builds the video server project. However, when it does this, it does not know where the shell script is, since it tries to use the SDK Project's Solution Directory.

  • SDK Project
  • Video Server Project
    • shell script

So the question is: how do I make the SDK Project find the Video Server Project? I checked the MSBuild properties and there are no properties that seem to deal with 'nested' projects.

© Programmers or respective owner

Related posts about visual-studio

Related posts about builds