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
In VS Tools->Options->Projects and Solutions->Locations I see I have
Looking at the ProjectTemplates folder I have no Python folder
So I copied the Python subfolder to the ProjectTemplates folder
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.
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.
As explained here
The console app is now called "Python Application"
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
In VS Tools->Options->Projects and Solutions->Locations I see I have
Looking at the ProjectTemplates folder I have no Python folder
So I copied the Python subfolder to the ProjectTemplates folder
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.
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.
As explained here
The console app is now called "Python Application"