|
-
Sep 3rd, 2022, 08:40 PM
#1
Thread Starter
Member
[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.
-
Sep 3rd, 2022, 10:35 PM
#2
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
-
Sep 4th, 2022, 04:59 PM
#3
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|