locked
Missing C# Console template RRS feed

  • 質問

  • 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?
    2016年1月7日 17:55

回答

  • 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

    2016年1月11日 2:55

すべての返信

  • 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


    • 編集済み lake Xiao 2016年1月8日 6:33
    2016年1月8日 6:33
  • 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.

    2016年1月8日 13:56
  • 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

    2016年1月11日 2:55
  • Thank you
    2016年6月25日 15:29
  • 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

    2017年3月26日 21:57
  • This worked for me. I'm able to see Console Application in VS 2015 Templates 
    2017年4月17日 8:50