title: How to update project templates cache in VS2017
body: <p>I'm migrating VS2015 project templates to VS2017. </p>
  
  <p>There are my own templates under </p>
  
  <p>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplates\CSharp</p>
  
  <p>After adding a new project template or modifying existing files it is possible to refresh cache by running below command in VS2015.</p>
  
  <pre><code>devenv /installvstemplates
  </code></pre>
  
  <p>But in VS2017 this command does not work. </p>
  
  <p>i found a workaround by deleting cache.bin file under <code>%localappdata%\Microsoft\VisualStudio\15.0_9f589482\ProjectTemplatesCache_{00000000-0000-0000-0000-000000000000}</code></p>
  
  <p>i need to do refresh cache programmatically but this workaround did not seemed so reliable for me. It includes some strange folder names which might vary on different systems. </p>
  
  <p>Is there any alternative command line switch similar to devenv /installvstemplates for VS2017 or any other proper way to refresh template cache?</p>