Visual Studio 2017 console application : precompiled header

Viewed 3335

Recently I updated my Visual Studio 2017.
Since then, I can't create windows console application project.

[File] - [New] - [Project]

and I selected [Installed] - [visual C++] - [windows console application program]

When I clicked OK, application setting wizard didn't appear.

wizard

above wizard didn't appear. Instead Visual Studio automatically created precompiled header project.

stdafx

What's wrong?

4 Answers

According to Visual Studio 2017 release notes:

The Windows Console and Desktop Application templates now create the projects without displaying a wizard. There's a new Windows Desktop Wizard under the same category that displays the same options as before.

I resolved my issue.

Go to file -> new project -> visual c++ -> windows desktop -> windows desktop wizard

There's a new Windows Desktop Wizard under the same category that displays the same options as before

Windows Desktop Wizard under

Be sure you selected ... Wizard by creating project. There you can select "Console Application" type , DLL... in drop down menu. If you have selected "Windows Console Application" for instance there is no wizard any more, it creates full project. You can set/change that under:

Configuration Properties → C++ → Precompiled Headers

if you need to have an empty console application project, try empty project. [Installed] - [visual C++] - [Empty Project]. Then add new .cpp file to the Source Files folder in solution explorer. [right click on Source Files] - [Add New Item] - [C++ File (.cpp)].

Related