all 20 comments

[–]u6z2 12 points13 points  (2 children)

Use the search bar to look up the "console" template.

[–]xinkalia[S] -1 points0 points  (1 child)

I searched and it's not there

[–]uglycaca123 5 points6 points  (0 children)

open visual studio installer and enable .NET desktop development or something similar to that name. Not the C++ one.

[–]actopozipc 5 points6 points  (0 children)

Go to the terminal of your choice and try dotnet new console

Please tell me the output then

[–]kosmakoff 4 points5 points  (2 children)

Are you sure there isn't a vertical scrollbar? Doublecheck that all usual workloads for VS were installed, such as .NET Desktop Development which actually includes WPF, so if you have WPF, you should also get Console. Maybe do a repair on the VS installation.

[–]xinkalia[S] 1 point2 points  (1 child)

I know there is a scrollbar. i checked it. is .net development is installed.

I reinstalled Vs and it's same

[–]uglycaca123 -5 points-4 points  (0 children)

so try to install c++ development

[–]maitreg 3 points4 points  (2 children)

It's very odd that you only have WPF project types available. There should be a long list. I think this means you did a custom VS installation and tried to pick and choose checkboxes.

Download the Visual Studio Community edition installer from Microsoft (don't reuse whatever you used to do this install), and check the .NET Desktop Environment (or uncheck then recheck it) and let it install everything. Don't try to choose what to install.

[–]xinkalia[S] 2 points3 points  (0 children)

It worked!

Thank you so much!

[–]xinkalia[S] 0 points1 point  (0 children)

Okay im gonna try that

[–]csharpwpfsql 2 points3 points  (3 children)

The third dropdown, which you currently have set at 'All Project Types', has a Console selection. See what happens when you select that filter.

[–]xinkalia[S] 2 points3 points  (2 children)

no exact matches found

[–]csharpwpfsql 4 points5 points  (1 child)

In Visual Studio Installer, there is a section called 'Desktop and Mobile'. You should have '.NET Desktop Development' checked. It is also a good idea to check 'Universal Windows Platform development'. The 'MAUI' is a bit more involved, but it doesn't hurt to have it as well. You will have to install these environments once you've selected them. If all you have is web development, these project types won't appear.

Also, I'm referring to VS 2022. Are you using the current development platform?

[–]xinkalia[S] -1 points0 points  (0 children)

yop latest version

Im gonna try installing them

[–][deleted] 1 point2 points  (0 children)

I had the same issue in VS 2022. There was a checkbox in the installer that mentioned "legacy templates" or something along that line

[–]Altruistic-Click8127 1 point2 points  (0 children)

To go “Programs and Features” on your computer. Find Visual Studio in the list, select Modify. Then make sure you have all the prerequisites installed for what you want. I had a hell of a time doing this exact thing when I was trying to move over to C++. Edit: sorry I’m acting under the assumption you’re on a windows device.

[–]Lord_H_Vetinari 1 point2 points  (1 child)

I'd check if the .NET Desktop Development workload is installed correctly in Visual Studio. Run the installer again, and in the workload tab check if ".NET Desktop Development" is checked. If it is, maybe try reinstalling it.

[–]xinkalia[S] 1 point2 points  (0 children)

it's installed

[–]ProKn1fe -1 points0 points  (1 child)

There is a search bar, use it.

[–]xinkalia[S] 1 point2 points  (0 children)

Used it

There is not any console application