Rico Suter's blog.
 

Articles

Implementation of “hybrid” (console or GUI) .NET applicatios

Have you ever had the need to use an application (.exe) as a command line tool when started in the console (cmd.exe) and as GUI application when started from the Explorer shell? This article explains a possible implementation for this requirement.
Read More ›

The correct handling of a WCF client’s life cycle

The most intuitive way of handling a generated WCF client’s life cycle is by putting it into a using block:
Read More ›

How to create an MSI installer using the WiX toolset

This article provides a simple guide about how to quickly create a WiX installer project for an existing WPF application or another Windows desktop application.
Read More ›

Taking fear from the .NET/XAML guy: Implement single-page web applications with TypeScript and MVVM

This article provides a simple guide about how to quickly create a WiX installer project for an existing WPF application or another Windows desktop application.
Read More ›

Merging a Pull Request in Visual Studio

Recently I tried to merge a Pull Request from CodePlex directly in Visual Studio. However, if the Pull Request comes from a forked repository, there is no way around using the command line tools to pull the remote branch into a local branch. It is actually very simple; just perform the following steps.
Read More ›

How to compare two methods in Visual Studio

Sometimes I need to compare two methods, for example to check if they can be refactored into one. To avoid the time consuming step of copying the two methods into separate files and compare them, I recommend using the Visual Studio extension ClipboardDiff.
Read More ›

Write detailed C# XML documentation and still keep the source code clean

For my open-source project MyToolkit I write a lot of documentation. Currently the documentation for a class has to be updated in two locations: The source code and the project’s wiki. I asked myself how to avoid this and document everything in the source code file – while keeping the source code simple by not putting too much documentation in it.
Read More ›

Use JSON files with schema for application configuration

Often, we face the problem that our customers need highly configurable applications but there is no time to develop rich configuration GUIs. This article describes a possible solution which is a compromise between editing raw configuration files and implementing rich configuration GUIs.
Read More ›

Use XBMC and other non-certified PlayTo receivers in Windows 8

PlayTo is a great technology which provides the ability to play the current video or music from your tablet to your TV. The problem is, that most devices, for example a HTPC running XBMC, supports PlayTo but is not certified. However there is a way to simply disable this restriction and use non-certified devices as PlayTo receivers. The reason why this is not enabled by default is that these devices may not work properly.
Read More ›

Develop an app which targets WP7 and WP8 (and WinRT) at the same time

This post shows how to develop an app which targets the WP7 and WP8 platform at the same time. The idea is to create two projects – one for WP7 and one for WP8 – and link all files into one of the projects. This way you don’t have to maintain the code twice and only have to develop in one project. On Microsofts website you can find the base idea. However this article shows even more problems and their solutions when using this approach. Here are the steps to setup the solution:
Read More ›