I noticed that some templates, such as, for example, a new class template in the add new item window, are displayed twice. to remove the duplicated template? enter image description here

    1 answer 1

    This problem may be caused by installing Xamarin. The names of its templates are spelled out with reference to standard resources:

    Name Package="{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}" ID="2245" 

    Therefore, they look like duplicates in the add dialog.

    You can fix all * .vstemplate files with your hands by writing names like "Xamarin C # class" instead of "Package =".

    Xamarin templates lie in

     c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\3.11.785.0\T\IT\Code\GeneralClass.zip 

    Studio caches templates, so after the fix you need

    • run cmd as administrator
    • go to c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
    • run devenv /installvstemplates

    The decision is taken from the accepted answer to the topiCaster question on enSO: How to remove the duplicate template in Visual Studio 2015