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.
Related
I have copied a C++ solution folder written with visual studio 2013 to my Pc and tried to run it (I mean VS Debugging) with VS 2022. the solution Contains 5 projects but I just target one of them so unloaded the rest and set the one as Startup project and this error happened.
Error Image
Solution file is working well on first pc and project is not a win32 project its x64 (I don't know much from win32 or x64).
Unable to start program. [VALUE].dll is not a valid Win32 application error in Visual Studio 2017
According to this question I tried selecting project, setting as startup, repairing VS, installing vcredist_x64 but non helped.
After Running, VS make Debug folder in solution Directory not the project "LP_Dll\x64\Debug" (LP_Dll is the solution name) without any .exe file, and the error path is exactly this folder, can it be from that?
Project properties the "Configuration Type" was mistakenly changed to .dll.
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)].
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 was new to Visual Studio and I want it to debug some of my c++ files.
The VS 2010 Ultimate was already installed in my lab system.
Now to debug after referring to internet and also here I came to know that we need to start a new project as below
File -> New -> Project -> Visual C# -> Win32 -> Win32 Console application
But in my VS there was no Win32 under Visual C# but there was Windows in which there was Console application, which I selected.
Then we need to add the C++ files under the source files directory. But I didn't find any such directory in this console application.
Is there any problem with installation or configuration.
Can anyone please help me.
the correct path to start a win32 C++ console project is
File -> New -> Project -> Visual C++ -> Win32 -> Win32 Console application
and if you don ´t find path it mean that you.have a custom setup.
find your setup DVD and/or use Add and Remove program to " modify " the setup. When installation program ask for the component you need check the C++ box. finish the setup and and after you will have a specific section for c++ project ....
I have a project in c++ with a sime gui (form)
I remember that the application file (file that runs the project) should be in the "Debug" directory of the project, but I don't find it. How can I create this file ?
Thanks
Hit the "Build / Build Solution" menu command?