Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No templates available when creating a new project in Visual Studio

"No template information found. See the application log in Event Viewer for more details. To open Event Viewer, click Start, click Control Panel, double-click Administrative Tools, and then double-click Event Viewer."

That's the error message I get when I try to create a new project or solution. How can this be resolved?

like image 691
D. Veloper Avatar asked Oct 29 '09 12:10

D. Veloper


People also ask

Where are the templates in Visual Studio?

You can find the project template in the New Project dialog, by searching for "project template" and selecting either the C# or Visual Basic version. The template generates a class file, an icon, a . vstemplate file, an editable project file named ProjectTemplate.

How do I find the project template in Visual Studio?

For example, you can right-click the project > click properties > select Application and see(refer to) the related information, for example, Output type -- Windows Application, Console Application, Class Library… Or you can find some related information about the project type from items, files etc.


2 Answers

I used a solution presented to me from other sites. One of them said to reinstall templates. I did the following:

In the command prompt I typed: cd C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

Then I typed: devenv /installvstemplates

I took a minute but after it completed I opened Visual Studio and tried to create a new project. All my project templates were back in order, including additional templates like Workflow, SharePoint and Silverlight.

Link to other source

like image 191
D. Veloper Avatar answered Oct 13 '22 07:10

D. Veloper


Start Menu --> Microsoft Visual Studio 2008 --> Visual Studio Tools. Right-click over the Visual Studio Command Prompt shortcut and make sure you select Run as Administrator. Once the VS Command Prompt comes up, execute the command without Quot,

  1. "devenv /installvstemplates"

  2. "devenv /resetsettings"

    And that worked out.

like image 31
prince bhalani Avatar answered Oct 13 '22 09:10

prince bhalani