title: How to make VS 2017 run some custom code after any project is loaded?
body: <p>Every project in our solution includes a custom targets file, so at first I hooked up to run after the Compile target in the design time build. But, VS does not call it always. So, the relevant script is not always called - not good.</p>
  
  <p>Is there another way? If you suggest VS extension, please provide more details. I know about the VS extensions, but have never written any. Maybe there is an easier way?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>In the end the Command Task Runner extension does not satisfy all the scenarios. It does not run:</p>
  
  <ul>
  <li>until its Tool Windows is activated for the first time</li>
  <li>when a project is unloaded and then reloaded</li>
  </ul>
  
  <p>So, I need a custom VS extension or another solution.</p>