Share via


Missing C# Console template

Question

Thursday, January 7, 2016 5:55 PM

I am new to programming and am following a book that says I am supposed to be able to find a "Console Application" template to start a new project in C# to write my "hello world" program. That template is not installed in MS VS2015. Any ideas how to get that template?

All replies (6)

Monday, January 11, 2016 2:55 AM ✅Answered

Hi

>>I don't know how to get a "command prompt" in Windows 10 or how to navigate to the devenv.exe area.

For example:

Search the “Prompt” then you will see the “Developer Command Prompt for VS2015”

Open the “Develop Command  Prompt for VS2015”.

Type the “cd C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE” and press Enter.

Then type "devenv /installvstemplates" and press Enter.

If still no help. I suggest you may need to reinstall your Visual Studio.

Best Regards,

Lake Xiao


Friday, January 8, 2016 6:33 AM

Hi mrgringo1039,

Could you tell me what’s version of your Visual Studio 2015?

Some Versions of VS2015 don’t support to use C# Console application.

For Example: VS2015 Express for Web.

If  the VS you use which supports the C# Console application.

Maybe the template was missing or not installed or some problem occurred.

You could try to restore the template in VS2015 then try it again.

Please refer to the following steps:

1. Delete the ItemTemplatesCache, ProjectTemplatesCache folder (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE)

2. In the command prompt, navigate to the location of devenv.exe. This file is located in <Visual Studio Installation Path>\Common7\IDE.

3. Type "devenv /installvstemplates" and press Enter.

Following document is about how to restore Default Project Templates for your reference:

https://msdn.microsoft.com/library/ms247116(v=vs.100).aspx

If still no help. May be you need to reinstall or repair your Visual Studio 2015.

Best Regards,

Lake Xiao


Friday, January 8, 2016 1:56 PM

I am running Windows 10. I downloaded the software from the following link:

www.visualstudio.com/products/visual-studio-community-vs

It says I have something called Microsoft Blend for Community 2015 Visual Studio.

I don't know how to get a "command prompt" in Windows 10 or how to navigate to the devenv.exe area.


Saturday, June 25, 2016 3:29 PM

Thank you


Sunday, March 26, 2017 9:57 PM

Than do not need reinstall just

Remove from %UserProfile%\AppData\Roaming\Microsoft\visualstudio\14 

and prompt command and change dire of installed Visual Studio 2015 dorectory than 

devenv /installtemplates

and start devenv and wait if alert shows just skip and wait until devenv runned and check new template project window yay all c++, c#, basic and f+ all here .

If you install distirbutable packages like MonoGame or SharpGL or whatever than you need prompt and change to and enter with devenv /installtemplates

Thanks for Bonus fix


Monday, April 17, 2017 8:50 AM

This worked for me. I'm able to see Console Application in VS 2015 Templates