NGen

Hi There,

Thankyou very much for all the work you have done bringing this software together. It works well.

I am wondering if you could tell me what I am doing wrong? When an update applies at the client it is not ngen'ing the exe's. I can manually ngen them. Is there anything I need to do in the WyBuild project to indicate that these files should be ngen'd?

Regards,

Andrew

wyBuild automatically detects which exe's are .NET executables at build time (when it builds the update). You don't need to do anything special. Just add the files to wyBuild.

The only time a .NET exe isn't ngen'd is if it's a .NET 1.0 or 1.1 exe. This is because NGENing has so little effect on .NET 1.0 and .NET 1.1 exes that the speed improvement is negligible (and in some cases causes speed loss).

But .NET 2.0+ exe's will always be NGEN'd. Are your exe's .NET 2.0 (or 3.0, 3.5, or 4.0) exe's? If this is the case would you mind sending me one of your exe's to support@wyday.com?

Do you need 1.0 or 1.1 NGENing? If so we might add it.

Ok, I've been looking into this some more and I think I've found some problems with the .NET assembly detection algorithm (almost all related to x64 support). It will be fixed in wyBuild & wyUpdate 2.5.

Thanks for reporting this.

These are .NET 3.51 SP1 assemblies

These are .NET 3.51 SP1 assemblies

We've tracked down & fixed the bug. If you were running wyBuild on an x64 OS the .NET exes weren't detected correctly.

This is fixed in wyBuild & wyUpdate 2.5. It will be out in about a week.

Hi Wyatt,

Sorry but the problem was occuring with these assemblies on 32 Bit Windows.

Andrew,

wyUpdate only NGEN's exe files - (ngen.exe automatically NGENs any *.dll dependencies). Are you expecting a standalone *.dll to be NGENed?

If this isn't the case - I can think of only one other case where NGENing will fail: (1) If you are using Vista or Windows 7 (2) and you have UAC enabled and (3) you're only installing to a non-restricted folder (e.g. C:\Users\YourUsername\Documents\ ).

Are either of these case what you're doing?

wyBuild & wyUpdate 2.5 are now out, download them here. Version 2.5 fixes all of these NGEN bugs you found. Thanks again.