Missing PythonConsoleApp template

Question:

I want to follow the instructions here but the PythonConsoleApp template is missing.
I am running VS2022 17.2.5

I have installed the Python WorkLoad. What do I need to do to get the template?

[Update]

After looking at the link Mateo gave I tried running VS as admin to install the work load but it did not help.

At the c: dos prompt I ran

dir pythonconsoleapp*.* /s

I see

PythonConsoleApp.vstemplate

in folder

 C:Program FilesMicrosoft Visual Studio2022ProfessionalCommon7IDEProjectTemplatesPythonConsoleAppProject

Location

In VS Tools->Options->Projects and Solutions->Locations I see I have

Project Locations setup

Looking at the ProjectTemplates folder I have no Python folder

sub folders

So I copied the Python subfolder to the ProjectTemplates folder

copied subfolder

However I still do not get the template as an option.

I tried uninstalling VS via Programs and Features -> Visual studio installer. Then installed Visual Studio Professional again from the download link. But no joy.

Asked By: Kirsten

||

Answers:

In the documentation it’s explained:

If you add a compressed (.zip) file that includes a .vstemplate file to the user template directory, the template appears in the new project and new item dialog boxes.

Answered By: David

As explained here

The console app is now called "Python Application"

Answered By: Kirsten
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.