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.
above wizard didn't appear. Instead Visual Studio automatically created precompiled header project.
What's wrong?
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
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
I use Microsoft Visual Studio 2017 Community Edition and I want to create a C++ dll.library. I use the following manual:
https://msdn.microsoft.com/en-us/en-en/library/ms235636.aspx
However there is no manual for VS 2017, only for 2015 and below. VS 2017 haven't project type Win32 Console Application and it doesn't open Win32 Application Wizard dialog box.
How I can create C++ DLL project in VS2017?
Create the DLL project:
In this set of tasks, you create a project for your DLL, add code, and build it. To begin, start the Visual Studio IDE, and sign in if you need to. The instructions for Visual Studio 2017 version 15.3 come first. Instructions for earlier versions come later, so skip ahead if you need to.
To create a DLL project in Visual Studio 2017 version 15.3 or later
On the menu bar, choose File, New, Project to open the New Project
dialog box.
In the left pane of the New Project dialog box, expand Installed and
Visual C++ if required, and then choose Windows Desktop. In the center pane, select Windows Desktop Wizard. Enter MathLibrary in the
Name box to specify a name for the project.
Choose the OK button to dismiss the New Project dialog and start the
Windows Desktop Project wizard.
In the Windows Desktop Project wizard, under Application type,
select Dynamic Link Library (.dll).
Choose the OK button to create the project.
And To use this .dll in a client app follow this link.
Working in Visual Studio 2017; I have added a class library in my project. Now I want to add an app.config file.
When I try to add by "Add new Item" but config file is missing from item list.
How can I do it?
You probably forgot to install workload .NET desktop development.
Go to installation, click to modify and include the workload .NET desktop development.
Check image of installation screen
Just right click your class library. Click on Add -> New Item and you should find Application Configuration file
Note:
If you have a solution without any project or all project are unloaded, you would not find the Application Configuration File
If you are missing visual studio templates,then Close all instance of Visual Studio and Open visual studio command prompt and type,
devenv /installvstemplates
Press Enter. Let the process be complete and now open visual studio. You will get all missing templates under Visual Studio installed templates.
I couldn't add app.config using the GUI tools for my web project. However, I have added the app.config file manually and the build process picked it up and used it.
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 :)
I am on Visual Studio Community 2017 v. 15.3.1 and I can't seem to find Win32 console application or Win32 project. Still have empty c++ project template and Windows Console Application template.
On the start page, I still have win 32 console project available, but if I click it, I get a prompt about removing it from the list
EDIT: I have currently installed following Workloads:
Universal Windows Platform
Net desktop development
Desktop development with C++
Game Development with C++
Visual Studio extensions development
I've done no changes to workload configuration, save from adding a few extra components.
I've been fiddling with installer for a while but can't figure out which package I need for this. Any suggestions?
The new updated changed some things. Go to file -> new project -> visual c++ -> windows desktop -> windows desktop wizard -> select whatever you want
If you haven't installed C++ at all (doesn't come by default as mentioned above) look here
This seems to work. Credit all goes to the original website! :)
(https://developercommunity.visualstudio.com/content/problem/93159/cant-find-win32-console-application-for-new-projec.html )
If you are using Visual Studio 2017, and can't find "win32 console project" after File ->> New ->> Project:
(https://imgur.com/a/3mmgyP3 : VS 2017 "New Project" without "win32 console project" )
Go to File ->> New ->> Project ->> Windows Desktop Wizard ->> select "Empty Project"
VISUAL STUDIO 2015
(https://imgur.com/a/9H7sHfV : File ->> New ->> Project ->> "Win32 Console Application")
VISUAL STUDIO 2017
(https://imgur.com/a/5Qqzf1L : File ->> New ->> Project ->> "Windows Desktop Wizard")
I am new to C# and I am in my first Hello World program... it runs fine in VS2015 Community Edition (Win 7). Now, I want to generate an .exe file for my project, but when I click Build be it in Release or in Debug I get the message Build Succeeded but I cannot find the .exe file for my project. I am searching in the same directory where my project resides: I can see the "source" subdirectory and the "artifacts" subdirectory; but cannot see an "release" or nor an "debug" or nor an "bin" subdirectories.
Thank you!
Not sure if you are trying to setup a Console Application under the File -> New Project -> Visual C# -> Web Template -> Console (Package). If you are, you need to use the Visual C# -> Windows -> Console Application.
That will create an .exe file for you.