Avatar of HLRosenberger
HLRosenberger
Flag for United States of America asked on

split .NET solution into sub projects

I have a .NET solution.   It contain many WEB pages, which are logically grouped into applications.   When developing, I currently load/open the solution, and it's getting slow, because  it's loading all the intelli-sense data, etc..  I was thinking that I could create mini-solutions or sub-solutions that reference just those files that are needed for an application.   Has anyone ever done anything like this?  if yes, any drawbacks, pitfalls that I should be aware of?
ASP.NETVisual Basic.NETVisual C++.NET

Avatar of undefined
Last Comment
HLRosenberger

8/22/2022 - Mon
Ess Kay

you can always create DLL's and then just reference them
HLRosenberger

ASKER
I do use DLL's as well, but that's a runtime thing.  I'm trying to avoid all the overhead of Visual Studio when opening a large solution.    Say I have 200 WEB pages in my solution.  But for any logical application I only use 15 pages.  I only need to load those pages plus any common source code.
Chinmay Patel

I don't think for 200 pages it will slow down your experience. I have never had to split solutions due to number of pages. Can you provide your hardware spec?

On splitting in to sub solutions if you are sure that these pages are not related to each other OR you can manage them using multiple solutions then I don't see a challenge except one: manageability. It will be difficult to manage them if there are changes in more than 3-4(this number may vary based on your style and preferences - I get annoyed if I have to do lot of switching between solutions.)

What I generally do is I create sub projects and then unload these projects when I don't need to use them. So Instead of creating solutions you can split these pages in to different projects and then unload a given project if you don't need to work on it.
Your help has saved me hundreds of hours of internet surfing.
fblack61
HLRosenberger

ASKER
What I am seeing is a long delay - up to a minute - when I load my solution. I get that message that says VS is working in the background, and updating intellisense.

I have Windows 7, SP1, 64 Bit.  HP Compaq 600 Pro MT PC.  Intel Core Duo  E7500 @ 2.93 GHz.   14 GB memory.
HLRosenberger

ASKER
Also, whats the best / easiest way to split it up into projects?  Right now I have this one large solution with around 200 pages.   but logically, I have 6 applications.   And I would like to have 1 "project" for each application, so that only those pages/files get loaded by VS.
Chinmay Patel

Simple Add 6 projects in your solution and then add relevant pages and necessary folders to each project and you are good to go.

I think Intel Core Duo could be the problem. 14GB RAM is more than enough? or is it 4GB RAM? also which version of VS you are using?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
HLRosenberger

ASKER
14GB ram.   VS 2010.

So, If I have 6 projects, I can open each project individually and run it.  

But what about common files?  Could these be added into each project as a link?
Chinmay Patel

Of course yes. Or you could created a 7th project and name it as common and keep all the common files in it.
HLRosenberger

ASKER
ah, good thought.    So, since I already have one large solution, its just a tedious matter, a brute force approach to break it up, correct?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
HLRosenberger

ASKER
How about as far as references?   is there a way to easily copy the references from one project another, without having to manually add them all one by one?
ASKER CERTIFIED SOLUTION
Chinmay Patel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
HLRosenberger

ASKER
thanks.