How To Start A New C++ Project In Visual Studio For Mac

Visual Studio for Mac enables developers to create applications using.NET and C# only. Visual Studio for Mac should also provide support for C++ development, using compilers available on the system (gcc, Clang, etc.).

Active3 months ago

I have a c++ project with lots of folders and compiles to lots of different executables, I want to open the entire thing in visual studio and have it keep the folder structure of my project.

Right now when try to create a new VS project and import my non-VS c++ project, it automatically puts all header files in one folder and source files in another completely ignoring my folder structure. How do I get visual studio to keep my folder structure when opening a C++ project that's not created with visual studio?

BradleyDotNET
53.4k8 gold badges74 silver badges95 bronze badges
Charles MaCharles Ma
30.1k18 gold badges74 silver badges95 bronze badges

2 Answers

I suppose you can select the project and then select Show All Files from Solution Explorer tool bar. You can then Include and Exclude files/folders from the project directory.

ataata
7,1125 gold badges34 silver badges60 bronze badges

Right click the folder you want them to be in in Solution Explorer, select Add->Existing Item...

C++

This skips a lot of the nice updating/verifying performed when you create a new VS project from existing files but is one way to structure a lot of files.

I'd prefer to manage them within Solution Explorer but I feel this is so obvious you either dissapprove or have a prohibitively large number of files to hunt and sort them with the small Solution Explorer window pane.

How to create a new c++ project in eclipseJohn

C++ Project Source Code

JohnC++
4,4236 gold badges35 silver badges73 bronze badges

How To Create A New C++ Project In Eclipse

Not the answer you're looking for? Browse other questions tagged c++visual-studio-2010 or ask your own question.