ASP.NET project size

2019-06-25 08:59发布

Are there any known issues around how many "pages" are in an ASP.NET project?

Does the size of the DLL created by the project matter at all?

My existing project is about 150 pages and the DLL is only around 3MB but it has increased from about 50 pages and 0.5 MB recently

5条回答
Root(大扎)
2楼-- · 2019-06-25 09:31

I haven't run into any issues with sites up to hundreds of pages in size. How big of a site are we talking about? Are there built-in redundancies between pages which can be resolved by having a single page take parameters?

查看更多
劳资没心,怎么记你
3楼-- · 2019-06-25 09:34

Scott Hanselman got on the subject two years ago.

The absolute limit is your system memory. The bigger the project the more memory it will use.

Surely you can stay in a [50-200] projects in a solution.

If you find your Visual Studio taking more than memory than expected start thinking about breaking your projects up.

In my opinion the best thing to do is to make the project size a design requirement.

EDIT : I'm not really answering to your question. To make it clear. The more elements (Pages, projects, image, references, etc.) you have in your VS2003, VS2005 or VS2008 solution the more Visual Studio will take on memory.

查看更多
乱世女痞
4楼-- · 2019-06-25 09:47

There aren't concerns unless you are trying to debug it (or turn off batch compilation). Or if you have a bunch of folders. Each folder will have one DLL for all the files with batch turned on. So if you break things up into a bunch of folders, that could cause fragmentation problems of the processes memory. Otherwise, no issues for lots of pages.

查看更多
Luminary・发光体
5楼-- · 2019-06-25 09:51

Technically, you can have hundereds (I'd venture to say thousands) of 'pages' in a web application project.

What Russell said though, to break it into modules, would potentially make it easier to maintain.

Is there a limit? No. Should you organize your project so that it's easier to manage? Yes.

查看更多
走好不送
6楼-- · 2019-06-25 09:56

Often times it makes sense to break down subsections of a larger site or project into multiple ASP.NET web projects. This makes the site way more modular. Additionally, if you have common controls that are used throughout the site that often is cause for a project that has just those controls.

To address the question directly, however, I've managed projects that have many, many pages and have had no issue... aside from it becoming "fun" to browser through and develop against.

查看更多
登录 后发表回答