Jump to content

Recommended Posts

Posted

Hi,

 

how do your structure your source folders when developing for several platforms? By default, under Visual Studio and XCode, when you create new C++ classes they are created in the Project/Windows and Projects/MacOS folders. But many of them are (and should be) platform-independent, so I guess they should go under Source. However, I couldn't find a nice way to integrate that folder into a VS solution (it's possible under XCode, though).

 

So: What's your preferred way of doing this?

Posted

Do we have to take those folder layouts in account? If so, my projects are build completely wrong. I thought you would just make your project on one platform and then when you are ready for other platforms, you export it to those platforms.

  • Upvote 1
Posted

Probably the only time you have to take the folder layout into account is when your developing both for Windows and OSX. You can't publish from Windows to OSX (only to Android), and on OSX you can only publish to iOS. But developing for Windows and OSX doesn't work out of the box, or I haven't found out. When I create a new class in VisualStudio, it is created in Projects/WIndows. I then remove it again from the project, move it in the file system to "Source" and "Add existing item.." But this is cumbersome, of course - I hope there is an easier way for this.

Posted

I never create files from Visual Studio itself. I just create a new text file in the Source folder and drag it into the VS project tree.

My job is to make tools you love, with the features you want, and performance you can't live without.

  • 7 months later...
Posted

I use the same method that Josh describes above. Right Click in the VS Solution Explorer->Select the 'Add Existing File'->Navigate to the Source directory->right click-> Create new Text Document.. I even put a shortcut to the Source folder in the Projects directory to make navigation a little easier.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...