How To Use a .NET 4 Based DLL From .NET 2 Based Application?

Monday, May 30, 2011

Introduction The official answer is you can’t. Even with the In-Process Side by Side execution (SxS) feature, introduced in .NET 4. The SxS feature was intended to be used when COM is involved. For example, if you got an application that loads plugins, like outlook, and it loads 2 COM plugins, one is using .NET 4 and the other is using .NET 2.0 then it will load two versions of the CLR into the process using the new SxS feature. What if I simply have a .NET 2 application or DLL that needs to access a...

Speed up Visual Studio Builds

Tuesday, May 17, 2011

Recently I got involved in a big project where we had a single solution with approximately 100 projects. Why 100 Projects in a Solution? The reason for a 100 projects solution is that like in many modular systems these days, we have the following three tiers: A few core / common projects every project will use. A large amount of modules, independent of each other. This tier directly depends on tier 1. A few end-projects which loads the different modules. This tier indirectly depends on tier 2. So, yes, we could create several solutions with each tier compiling only when needed and...

How to Check How Many Writes Are Done While You Build?

Tuesday, May 10, 2011

In the following post I’ll show you how you can measure how many read and writes (in bytes) your build takes. This may prove useful since the amount of writes can have a tremendous effect on the build total time. More on how to shorten your build time in a future post. Step 1: Download Process Monitor The key for measuring the build read and writes is to download the great tool by Sysinternals, Process Monitor. Process Monitor is a tool which monitors all the processes in your system for several activities, like: file-access, registry, etc....

Adding Missing WPF Controls To The Toolbox

Wednesday, December 1, 2010

The other day I was teaching a WPF course when one of the students asked me where is the “Line” shape in the Visual Studio Toolbox. I approach to show him, only to find out that this control is indeed missing from the Visual Studio 2010 Toolbox. Even if you search the alleged “All WPF Controls” tab.. After a quick check I’ve found that this is not the only shape missing. The missing shapes are: Line, Path, Polygon, Polyline. And who knows which other controls are missing. Anyway, you can add...
one comment