Results 1 to 3 of 3

Thread: [RESOLVED] Project Folder Structure/Restructure

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2022
    Posts
    33

    Resolved [RESOLVED] Project Folder Structure/Restructure

    I have a VB.NET (Windows Forms app) project. It currently consists of 20 forms and a module in their default location. While reading on setting up a a repository (GitHub) I noticed that there is a folder structures used by most developers. These seem to be the standard structure.

    • artifacts
    • build
    • docs
    • lib
    • samples
    • src
    • tests
    • .editorconfig
    • .gitignore
    • build.cmd
    • LICENSE
    • Project.sln
    • README.md


    Can I just create the folders in solution explorer and move files?
    Where do I put the files for each form (.vb, .resx, and .designer.vb)?
    Will this require re-coding the forms (specifically the subs that open and close other forms)?

    Any assistance on how to restructure my project correctly would be greatly appreciated.

  2. #2
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    33,970

    Re: Project Folder Structure/Restructure

    artifacts
    build <---- This is where you put release builds
    docs <---- Documentation goes here
    lib <--- additional libraries go here
    samples <---- Sample codes, files, etc go here
    src <---- HERE, put your source files here... that's what "src" means.. source. So put them here, you can use what ever structurre in here that makes sense.
    tests <--- unit and/or automation tests go here
    .editorconfig < ---- the rest of these are just files
    .gitignore
    build.cmd
    LICENSE
    Project.sln
    README.md

    Looks like a basic github kind of setup there ... you use what you need or want to. There's no specific way you have to do it. But the above struxture reflects common setup.
    As a side note, the projects I work on don't use the above structure. I mean we have the gitignore file, and readme, but our src folder is burried a bit, and our test folder is even deeper than that.

    Bottom line, use the structure for your project that makes sense. Not going to do any release builds? Don't use the build folder? Don't need to distribute sample files or codes? Don't use the sample folder.


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2022
    Posts
    33

    Re: Project Folder Structure/Restructure

    Thanks for the explanation.

    I was able to complete the restructuring without issue. Created the folders, then cut and pasted the forms and modules in their respective folders in the src folder.

    Thanks again.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width