Visual Studio 2008 build takes insanely long time

F

Frankie D.

I migrated a VC# app platform from VS2005 to
VS2008 (SP1) and the build time increased by a huge amount.

Whereas it used to typically take a few seconds to deploy my app under
VS2005, it now takes about 2-4 minutes. And redeploying an unmodified
project still takes 2-4 minutes to "build" the already-built project. What
is causing this and how can I fix this?

I have tried to to disable PlatformVerificationTask (see
http://blogs.msdn.com/vsdteam/archive/2006/09/15/756400.aspx ), but it does
not solve the problem.

Thanks for any help.

Frankie
 
P

Paul G. Tobey [eMVP]

That's the only thing that I can recall as having a big impact on the build
time. Maybe you made a mistake in the process of disabling it? Didn't do
it for all of the instances of Microsoft.CompactFramework.Common.targets?
Didn't actually set the environment variable? Set it for the wrong user?
Didn't restart VS2008 after making the changes?

Paul T.
 
F

Frankie D.

Didn't do it for all of the instances of Microsoft.CompactFramework.Common.targets?

How many instances are there? I have found only one in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 :$
Didn't actually set the environment variable?

I set it in Control Panel/System/Advanced/Environment variables/System
variables :$. Or I should set it in Visual Studio?
Set it for the wrong user?

I set it for system variables :$


Thanks
Frankie
 
P

Paul G. Tobey [eMVP]

Didn't do it for all of the instances of
How many instances are there? I have found only one in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 :$

I have at least .NET CF 2.0 and 3.5 on my system. I can't say that it's
absolutely required to do it for each one, but I did. So, that means the
files in v2.0.50727 and in v3.5.
I set it in Control Panel/System/Advanced/Environment variables/System
variables :$. Or I should set it in Visual Studio?

I would set it for all programs via the Control Panel, yes. If you launch a
new MS-DOS window and type 'set Skip', you should see your value (make sure
it's spelled right), and it should have the value 'true', not '1' or '255'
or 'True'; it has to be 'true'.
I set it for system variables :$


Thanks
Frankie

Paul T.
 
F

Frankie D.

There's another for the CF 3.5 stuff too. You didn't say which version
you're targeting.

Theoretically I use 2.0 because the project was converted from VS2005 and
The converter wrote that ".NET Compact Framework 2.0 applications will remain
unchanged". How can I check it?

Thanks

Frankie
 
F

Frankie D.

So, that means the files in v2.0.50727 and in v3.5.

Microsoft.CompactFramework.Common.Targets in v2.0.50727 and
Microsoft.CompactFramework.Common.Targets in v3.5. Two files? ( One
file/folder)?

I would set it for all programs via the Control Panel, yes. If you launch a
new MS-DOS window and type 'set Skip', you should see your value (make sure
it's spelled right), and it should have the value 'true', not '1' or '255'
or 'True'; it has to be 'true'.

Quotation mark is needed? :$

Thanks
Frankie
 
P

Paul G. Tobey [eMVP]

Frankie D. said:
Microsoft.CompactFramework.Common.Targets in v2.0.50727 and
Microsoft.CompactFramework.Common.Targets in v3.5. Two files? ( One
file/folder)?

There are two files, one in each directory, yes.
Quotation mark is needed? :$

No and, in fact, that would probably break things.

Paul T.
 
F

Frankie D.

It's in the Properties Pane for the project.

I have "Target Framework" combobox on the application page in the Properties
Pane, but it is not enabled and there is nothing in it :$

Frankie
 
F

Frankie D.

I am at home now and projects are built fast without skipping PVT (I test
now an older version of the project), but in the office is something wrong,
I will check it tomorrow. Thank you for your help.

Good night!

Frankie
 
F

Frankie D.

I have at least .NET CF 2.0 and 3.5 on my system. I can't say that it's
absolutely required to do it for each one, but I did.

It is absolutely required.

Thank you for your help.

Frankie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top