Category Archives: Visual Studio

Deploying and Debugging Windows 8 Apps on Microsoft Surface

Good testing is important when developing applications. So before you publish an app for Windows 8, it could make sense to test the performance and look and feel on a Surface RT device. As a developer using Visual Studio 2012 it is pretty easy to do this. With Visual Studio Remote Debugger Tools you can deploy and debug your application. Also this is the only way I know, to deploy an app to a Surface RT device without using the Microsoft Store.

Small Overview

The following is a small overview of how it works

1. Download Visual Studio 2012 Remote Debugger Tools

Power your Surface and download the tools for ARM devices and install it

2. Start Remote Debugger

Search in your apps on your surface and start Remote Debugger


4. See Remote Debugger is running

You should note the name and the port for Visual Studio configuration.


5. Deploy and debug

Now you can switch to your developer machine and configure Visual Studio to deploy and debug on your surface device.


Expiration Date of Your Developer License

When your developer license on the Surface has been expired, you need to update the registration in the following way
– Start Powershell as Administrator
– Enter the following command: Show-WindowsDeveloperLicenseRegistration
This can also be useful, if you get the message: “Found 0 connections on my subnet.” in Remote Debugger Connections
Still no luck? Maybe it will help to switch your Wifi access point on and off -> works for me

More information

A good starting point with more detailed information can be found here…

Tagged , , , , ,

Compare Excel, Word and PDF Files in Visual Studio Team Foundation Server 2010

This post could be interessting for you, if you get the message “Binary files differ” in Visual Studio.

Comparing two files is a common task for a developer. When using Team Foundation Server as source control, it is very comfortable using Visual Studio’s built-in compare feature for file history. However when comparing Office documents like Word (.doc, .docx), Excel (.xls, .xlsx) or even .pdf things become difficult. The only information you will get is that files are different. It is not possible to see the differences as it is possible in the way of simple text code files.

How Office documents can be compared?

To compare these file types you need another diff tool that is able to compare that files and integrate it in your Visual Studio. I’m using WinMerge which is cost free and comes with a lot of plugins.

1. WinMerge with xdocdiff Plugin

At first you need to download WinMerge and xdocdiff Plugin. WinMerge is a very good and common tool to compare files. The xdocdiff Plugin enables WinMerge to compare Microsoft Office documents.

Please read the installation guide of xdocdiff to configure the plugin in WinMerge.

xdocdiff supported file formats

  • .rtf – Rich Text
  • .docx/.docm – Microsoft WORD 2007(OOXML)
  • .xlsx/.xlsm – Microsoft Excel 2007(OOXML)
  • .pptx/.pptm – Microsoft PowerPoint 2007(OOXML)
  • .doc – Microsoft WORD ver5.0/95/97/2000/XP/2003
  • .xls – Microsoft Excel ver5.0/95/97/2000/XP/2003
  • .ppt – Microsoft PowerPoint 97/2000/XP/2003
  • .sxw/.sxc/.sxi/.sxd –
  • .odt/.ods/.odp/.odg – Open Document
  • .wj2/wj3/wk3/wk4/123 – Lotus 123
  • .wri – Windows3.1 Write
  • .pdf – Adobe PDF
  • .mht – Web Archive
  • .eml – Exported files from OutlookExpress

2. Ensure WinMerge and xdocdiff is working

To ensure that everything is working you should compare two Office documents using WinMerge manually.

3. Configure Visual Studio 2010 to use WinMerge

Go to Visual Studio / Options / Source Control / Visual Studio Team Server

Use the following settings to configure WinMerge to act as compare tool.

Extension: .doc,.docx,.xls,.xlsx,.pdf
Command: C:\Program Files\WinMerge\WinMergeU.exe
Arguments: /x /e /ub /wl /dl %6 /dr %7 %1 %2

In the Extension field you can add all xdocdiff supported formats from above.

4. Test Compare feature

Here I’m using a simple Excel file that looks like this…

In the Source Control Explorer of VS navigate to a controlled Excel document, view the History and click Compare.

5. Compare Result

WinMerge will open automatically and show the difference of the two versions.