From: Mohammed on
Hi, I am facing this very issue mentioned by corrado. Has anyone figured it out, any workaround for it.

Thanks
Mohammed.



corradola wrote:

Form designer very slow and exhausting disk space in Visual Studio 2005
22-Oct-07

Hi everyone,

start Visual Studio 2005 and create a new C# Smart Device project,
targeting Compact Framework 1.1.
Add a reference to System.Data.SqlServerCe.
Close an reopen the just created Form1.
Maybe you'll notice it seems a little slower now.
Now open your ProjectAssemblies folder.
On my Vista machine it is C:\Users\Corrado\AppData\Local\Microsoft
\VisualStudio\8.0\ProjectAssemblies
You'll find 8 random-name recently-created directories, each holding a
copy of SqlServerCe.dll

Now lets move to real world example.
I've a big form with a page control, a lot of pages and a lot of
controls.
Opening it requires an unacceptable amount of time: about 45 seconds
on my new PC, up to 4 minutes with older one. Worst, every time I open
it, Visual Studio create more the 1000 folders in ProjectAssemblies,
each filled with the above mentioned 122 KB dll. Thats 122 MB of
wasted space.
Before I realized it I got 17.0000 files using 2 GB of disk space.

We had no trouble with Visual Studio 2003, which opened the big form
in few seconds even on the older PC.

I've about 1000 rows in my form InitializeComponent, so I belive a new
copy of SqlServerCe.dll is created every time VS designer parse an
InitializeComponent row.
Worst, Process Explorer shows every dll copy is loaded in memory
twince...

Can you reproduce my behaviour?
Any workaround?

Kind regards,
Corrado

Previous Posts In This Thread:

On Monday, October 22, 2007 10:41 AM
corradola wrote:

Form designer very slow and exhausting disk space in Visual Studio 2005
Hi everyone,

start Visual Studio 2005 and create a new C# Smart Device project,
targeting Compact Framework 1.1.
Add a reference to System.Data.SqlServerCe.
Close an reopen the just created Form1.
Maybe you'll notice it seems a little slower now.
Now open your ProjectAssemblies folder.
On my Vista machine it is C:\Users\Corrado\AppData\Local\Microsoft
\VisualStudio\8.0\ProjectAssemblies
You'll find 8 random-name recently-created directories, each holding a
copy of SqlServerCe.dll

Now lets move to real world example.
I've a big form with a page control, a lot of pages and a lot of
controls.
Opening it requires an unacceptable amount of time: about 45 seconds
on my new PC, up to 4 minutes with older one. Worst, every time I open
it, Visual Studio create more the 1000 folders in ProjectAssemblies,
each filled with the above mentioned 122 KB dll. Thats 122 MB of
wasted space.
Before I realized it I got 17.0000 files using 2 GB of disk space.

We had no trouble with Visual Studio 2003, which opened the big form
in few seconds even on the older PC.

I've about 1000 rows in my form InitializeComponent, so I belive a new
copy of SqlServerCe.dll is created every time VS designer parse an
InitializeComponent row.
Worst, Process Explorer shows every dll copy is loaded in memory
twince...

Can you reproduce my behaviour?
Any workaround?

Kind regards,
Corrado


Submitted via EggHeadCafe - Software Developer Portal of Choice
How to Get Your Silverlight Pages Indexed By Search Engines
http://www.eggheadcafe.com/tutorials/aspnet/0917dc85-4b8c-4525-ab1e-1ca9ad6bcac8/how-to-get-your-silverlig.aspx