Category Archives: Development

Dotnet development

ExcludeFromCodeCoverage and Linq

Visual Studio has an attribute called ExcludeFromCodeCoverage to exclude a method from code coverage. But when you use Linq the predicate is included. See sample screenshot below where the code is called with an empty list in the repository. Looking … Continue reading

Posted in Development | Tagged , , | Leave a comment

Performance optimization with VS2012 profiler

Many systems are not optimized or sub-optimized by tweaking the wrong features. This post describes the use of the Visual Studio 2012 profiler to get insight in what to optimize and monitor the result of these optimizations. For this post … Continue reading

Posted in Development | Tagged , , , , , , , , | Leave a comment

Code generation

We developers have T4 in Visual Studio. I’ve been playing with this for a while now and use it more often to speed up repetitive tasks. The Business Intelligence team has BIML in Visual Studio. A colleague asked me to … Continue reading

Posted in Development | Tagged , , , , | Leave a comment

Loading generic.xaml from embedded assembly

My WPF application uses custom controls in a referenced library. To simplify deployment, all dependent DLLs are embedded resources of the application EXE file. Read Jeffrey Richter: Excerpt #2 from CLR via C#, Third Edition to get the details. The … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

Parallel Deflate issue in DotNetZip Library

For deployment packages we use DotNetZip Library to create zip files. One of the files recently became corrupted when put in the package. We investigated the changing of Compression Level and Compression Method. Which solved the issue but none were … Continue reading

Posted in Development | Tagged , , , , | Leave a comment