Escribo esta entrada en espa?ol y en ingl?s en vista de que describo un problema (con su supuesta soluci?n) con el que mucha gente se ha estado topando ?ltimamente. Lo s? porque yo mismo trat? de buscar informaci?n que me ayudara a resolverlo y al hacerlo me encontr? con muchas personas posteando en forums?en busca de?soluciones para el mismo problema pero sin ?xito.

El problema sucede al instalar las extensiones de Windows Presentation Foundation, Windows Communication Foundation y Windows Workflow Foundation para Visual Studio 2005. Estas son las principales nuevas?herramientas del Framework .NET 3.0 y de Windows Vista. Estas extensiones est?n hechas para aquellos que ya queremos probar desarrollar aplicaciones para Vista con nuestro actual Visual Studio 2005. El problema est? en que, al instalar estas extensiones, desaparecen las plantillas de Proyectos y las plantillas de Items est?ndares de Visual Studio 2005. Opciones como Crear Aplicaci?n Windows o Sitio Web ASP.NET simplemente desaparecen. De la misma forma desaparecen las opciones de Agregar una nueva Clase, un WinForm o un WebForm al proyecto.

El sitio de MSDN, as? como varios usuarios de Internet,?sugieren ejecutar la instrucci?n [devenv /installvstemplates]. Desgraciadamente no me funcion? as? como a tanta gente que vi que reclamaban que tampoco les hab?a servido. El mismo sitio de MSDN recomendaba reinstalar Visual Studio en caso de que lo anterior fallara. Una respuesta nada agradable.

Despu?s de mucho probar me funcion? simplemente lo siguiente:

  • Abrir en una ventana de Windows Explorer?la carpeta donde se encuentran los templates est?ndares de Visual Studio 2005: [Program Files]\Microsoft Visual Studio 8\Common7\IDE\.
  • Abrir en otra ventana de Windows Explorer la carpeta donde se encuentran los templates de usuario de Visual Studio 2005: [My Documents]\Visual Studio 2005\Templates.
  • Copiar todo desde ProjectTemplates de?la primera ventana?hacia ProjectTemplates de la segunda.
  • Copiar todo desde ItemTemplates de la primera ventana hacia ItemTemplates de la segunda.

Y listo. Al volver a abrir Visual Studio 2005 est?n todas nuestras plantillas de vuelta adem?s de seguir contando con las nuevas plantillas del Framework 3.0. Ojal? esto le sirva a m?s de alguien. Saludos a todos.

———————————————————————

I write this post in english and spanish because I describe a problem (apparently with its solution)?that?is affecting?many people these days. I know that?because I saw lots of people posting in forums asking how to solve this problem but in many cases unsuccessfully.

Everything happens when you install the Windows Presentation Foundation, Windows Communication Foundation?and Windows Workflow Foundation?extensions for Visual Studio 2005. These are the new tools that come with .NET Framework 3.0 and Windows Vista. The extensions?exist so anyone interested can already practice with them to develop Vista applications with his/her current Visual Studio. However, when you install them, the standard Visual Studio Project Templates and Item Templates just disappear.?Options like?Create a new Windows Application or a new ASP.NET Web Site vanish completely. The same way vanish the options to Add a new Class, or a new WinForm or a new WebForm to the Project.

The MSDN Site, as other Internet Users, suggest to run the sentence [devenv /installvstemplates]. Nevertheless that doesn’t work for me or for many people that I saw in the forums. The MSDN Site recommends to reinstall Visual Studio if the previous tip doesn’t work. Not so nice.

After a lot of proving and failing I came to this:

  • Open a Windows Explorer window and search the location where Visual Studio installs the standard templates, usually [Program Files]\Microsoft Visual Studio 8\Common7\IDE\.
  • Open a Windows Explorer window and search the location where Visual Studio?searches for?the user templates, usually [My Documents]\Visual Studio 2005\Templates\.
  • Copy everything in the ProjectTemplates from de first window to the ProjectTemplates folder of the second.
  • Copy everything in the ItemTemplates from de first window to the ItemTemplates folder of the second.

That’s all. When you open Visual Studio 2005 the next time, all your old templates will appear available again. Besides, your new 3.0 templates will be there too. I hope this can be usefull to someone. Cheers.