title: Visual Studio 2017 hangs at "initializing templates..."
body: <p>This is a brand new installation of VS2017 (latest version at the time of writing - 15.1 (26403.0)) on a fresh installation of Windows (Windows 10 Enterprise 64-bit) with no extensions or addons included yet. When going to File New Project VS simply sits at 'initializing templates...'. I've waited for twenty minutes before having to force quit the application.</p>
  
  <p>I have tried the command line argument for devenv /installvstemplates which does not help.</p>
  
  <p>Any help is appreciated, let me know if you need any additional info.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I continued troubleshooting the issue. I ran VS as administrator with logging and noticed that these are the final logged entries when attempting to load templates:</p>
  
  <ul>
  <li>Found templates with duplicate template ids at &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\ClassLibrary_WorkerRole.vstemplate&quot; and &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\ClassLibrary\csClassLibrary.vstemplate&quot;</li>
  <li>Found templates with duplicate template ids at &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ProjectTemplates\CSharp\1033\SharedProject\SharedProject.vstemplate&quot; and &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\SharedProject\SharedProject.vstemplate&quot;</li>
  <li>Found templates with duplicate template ids at &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ProjectTemplates\VisualBasic\Windows\1033\ClassLibrary_WorkerRole.vstemplate&quot; and &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ProjectTemplates\VisualBasic\Windows\1033\ClassLibrary\classlibrary.vstemplate&quot;</li>
  <li>Error!  Unable to access file (%USER%\AppData\Roaming\Microsoft\VisualStudio\15.0_ea1722b9\ProjectTemplatesCache\cache.bin)</li>
  </ul>
  
  <p>Even though this was a fresh install on a clean system I did attempt an uninstall and reinstall of VS2017 which did not work. I even selected less options in an attempt to mitigate the duplicate template ID warnings. </p>