Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to make separate projects for existing .cs files

Posted on 2011-10-11
2
Medium Priority
?
173 Views
Last Modified: 2013-11-26
I have a solution with one project in it.  That project has about 40 .cs files.  I want to take those 40 files and group them as to function, then make each group a separate project which I will then build into a .dll file.  I want to do this for ease of maintenance - when one of the projects code changes, I just have to rebuild it and upload just the .dll to replace the previous one in the installer program, thus making an update cleaner and smaller to download.

I believe this will work, but looking to the experts for advice.
0
Comment
Question by:rmmarsh
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 total points
ID: 36951101
I would not split it. Having 40 .cs files into a project is quite normal, many would even say that it is a small project. Look at all the classes that are in System.Data.dll, and you will see. Microsoft should know a bit about design.

Not only is it acceptable, but you will also probably help yourself.

It is quite possible that some pieces of that code need pieces that would end up in another dll. The thing could become quite complex to manage as far as references and versioning are concerned.

Since you would have to redistribute a new dll each time you make a change, distributing one dll with 40 classes is not simpler than distributing one dll with 10 classes. I would also suspect that if you ever ended up with many changes at the same time, you might have to redistribute many of your little dll at the same time. Once again, distribution only one bigger dll is easier than distributig 2 smaller ones.

I would simply leave everything as it is.

If you do it only to help maintenance, maybe you might want to have many folders inside of your project to group the code files. You can add a Folder by right clicking on the project in the Solution Explorer. Once the folder created, you can simply drag and drop a code file into that folder to move it.
0
 

Author Closing Comment

by:rmmarsh
ID: 36951129
Thank you...
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question