What package should i install to get Win32 console application (Visual Stdio 2019) - c++

My installed or something in my vs 2019 files screen shot
My installed or something in my vs 2019 files widen screen shot
i dont have templates or any win32 console application
pls help me im new to vs 2019
i only coded two applications ( Windows Form Application )

To install other templates, you can open the Visual Studio Installer (open by searching in the windows menu). Choose your VS installation, click more then modify.
Ensure the above option is ticked, then click modify at the bottom.
When you open VS, this is the project type you should make.

.Net Desktop Development
This would help you developing console apps on vs 2019
You could get to vs installer from "Tools>get tools and features"

Related

Win32 Console Application missing in VS2017. How to create C++ Empty Project?

I installed the VS2017 community and I am lost: the Win32 Console Application in missing.
I don't even have template when I go to New Project and also I cannot create C++ Empty Project in VS2017.
How I can solve it?
Install all the optional tools for c++ development
then follow these steps ( Microsoft has updated its visual studio and there are some minor changes)
The new updated changed some things. Win32 Console Application is gone in the new update. Go to File -> New Project -> Visual C++ -> Windows Desktop -> Windows Desktop Wizard -> Application type: Console Application (.exe), Additional Options: Empty Project
Then have fun!
You just need to install "Visual Studio C++ core features". Don't install everything about C++. It consumes too much storage and possibly slow down your IDE.
Steps:
Open Visual Studio 2017 Installer.
Select "Individual Components" tab.
Select "Visual Studio C++ core features".
That's all.
If you are not interested in Game or Mobile C++ development you can remove your selections in "Workloads" tab to get free space in your hard drive :)

Can't change Windows SDK version in Visual Studio C++ project

I have a Visual Studio C++ console application that I created with Visual Studio 2015 and now I can't compile it (with Visual Studio 2017) because it is targeting the Windows 8.1 SDK, which is not installed. The problem is that I can't retarget the project to the Windows 10 SDK.
What happens is that when I open the project properties page and go to General - Target Platform I see the Windows 10 SDK in the dropdown, and I am able to select it... but as soon as I press Apply, it reverts back to 8.1 by itself. No error message is provided.
Visual Studio installer says that, indeed, the listed SDK version is installed:
So what's going on here? Is there a way to retarget my project without having to install the Windows 8.1 SDK?
Not sure if that matters but: this project is actually just a "wrapper" around an existing bare project consisting of just a bunch of .cpp and .h files, which was developed by another person. I'm really not familiar with C++ development.
After hours of struggling with this problem, I coincidentally discovered that selecting Project Properties/General, changing "Platform Toolset" to v141_xp (instead of v141) forcibly drops the Windows SDK Version to 8.1 or 7.0. I'm not sure how Visual Studio chooses which SDK to use.
EDIT: You must edit .vcxproj and change both:
<TargetPlatformVersion>10.0.17134.0</TargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>

Universal Windows App Template Not installed

First of all let me make you clear you that, I am using Visual Studio Community 2015 update 1 and I am running on Windows 10 Pro.
As with update version of Visual studio I find inside Visual c#\Windows\Universal Tab that to install Universal Windows Tools.Also,I let you know that all other templates inside Visual C# Tab are installed and I can use them.
I have tried lot's of solutions to install them,still find the same.I have tried to modify VS from the installer package found under Program and Features in Control Panel.And also I have put for direct installation from that template Tab and selected all the necessary Tools from the Installation window.
What can I do next??
Open control panel->programs & features->installed Programs, select Visual Studio 2015 and click on modify. Now select the Universal Windows App Development Tools and click ok to install them. Now you should see the entries in Visual Studio.
A fresh install is required. So, if you are planning to Modify the setup, this will not work as it will not show the check box for Windows 10 SDK.
There are two ways:
1. Uninstall and reinstall the latest build -> Visual Studio Community 2015 - Update 3 as of now.
Install the preview edition, this requires 28GB, but you can customize your installation.
Install the Windows 10 sdk separately. Just go on http://dev.windows.com
I got the solution guys!!!
If you had upgraded your VS to VS update 1 or to any newer versions and i you get this error,then you need to try to uninstall VS completely and reinstall it and put tick on checkbox for 'Tools for Windows App and Windows 10 SDK' from the installation window.
Then your Project window gets the Universal Windows template installed...

Can't install missing features on Visual Studio 2015 on Windows 10

I'm working with cocos2d-x framework for c++ using Visual Studio 2015 Community on Windows 10.
When I try to open a solution for a created project, visual studio says some projects are unavailable. When I right click and go to "install missing feature(s)", visual studio says I have to install "Windows XP support for C++".
When I click to install I get a "Setup - Usage" window(that seems to be bigger than my screen). I don't see any button, so I hit enter, but nothing happens. Nothing downloads and nothing installs...
Does anyone have a solution to this?
The message is as follows:
Install Windows XP support for C++
Windows 7.1 SDK for targeting Windows XP
The following projects will not be loaded unless you install the above
feature
All that's needed is to add in Windows XP Support via the installation tool accessible from Control Panel. Steps:
Close Visual Studio 2015
Open Control Panel
Select 'Programs and Options'
Right click on 'Microsoft Visual Studio Professional 2016'
Select 'Change' from the menu (the only option)
Once the installation tool has set up, select 'Modify'
Expand Programming Languages --> Visual C++
Select 'Windows XP Support for C++'.
Proceed with the update.
Note that selecting 'Windows XP Support for C++' automatically selects its dependencies, 'Windows 8.1 SDK and Universal CRT SDK' and 'Common Tools for Visual C++ 2015'.
What I think might have happened for the OP was that in selecting Universal Windows App Development Tools and various C++ options, they hit upon 'Windows XP Support for C++' itself or something that had it as a dependency. So they may have various components installed unnecessarily now. :-(
got your point.
Here are the steps to install it properly.
Go to the below site and try to install it. & select the option as per the snapshot attached here.
https://www.microsoft.com/en-us/download/details.aspx?id=53587
Also, if required, please refer to the below blog.
https://devblogs.microsoft.com/cppblog/setup-changes-in-visual-studio-2015-affecting-c-developers/

Can't create C++ console application in Visual Studio 2013

I downloaded Visual Studio 2013 from official site. But I can't create a new console project, as I've seen in some tutorials. The reason is that there is no console application in templates for C++.
May be there is another way to create a new console application?
That's Visual Studio Express for Windows, which is used for Windows Store and Windows Phone apps.
To do Windows desktop apps you need Visual Studio Express for Windows Desktop.
Or, of course, you can use e.g. the MinGW g++ compiler, and some general IDE such as Code::Blocks or Eclipse. But Microsoft's help system is very useful. And currently g++ only supports the Windows API as it was with Windows XP, no newer stuff.
I found a way to create a Console project no matter what version of VS Express you are using.
Create any type of project (i.e. A basic "class library" project).
Right-click the project in Solution Explorer and click Properties. You'll see a dropdown for "Output type". Select "Console Application".
Create a Main method somewhere as an entry point into the app. Doesn't matter what class you put it in.
class Program
{
static void Main(string[] args)
{
Console.WriteLine("We made a console app");
Console.ReadKey();
}
}
I did this with "Visual Studio 2013 Express for Web", so I'm not absolutely certain what your mileage will be on other flavors.