Category Archives: Visual Studio

Calling MSBuild tasks with F#

It’s easy to call MSBuild tasks directly from F#. Although possibly unnecessary.

Also posted in .NET, F#, Software Development | Tagged , , | 2 Comments

Generating and plotting random numbers

An example of generating random numbers in F# and visualising their distribution using the WPF charting control.

Also posted in .NET, F#, Finance, WPF | Tagged , , , | Leave a comment

Pinned DataTips in Visual Studio 2010 Beta 2

I’ve just noticed a nice little feature in Visual Studio 2010 Beta 2: pinned DataTips. Values displayed in the debugger as you hover over a variable can now be pinned in place and remain aligned with the source. They can even have annotations added… Tasty!

Also posted in Debugging, Usability | Tagged , | Leave a comment

Comparing lambdas in C++ and F#

Lambdas in C++ and F#: compare and contrast.

Also posted in F#, Software Development | Tagged , | 1 Comment

FormatException in WPF DataBinding

A FormatException is generated by the WPF DataBinding diagnostics if the original exception text contains curly brackets.

Also posted in .NET, Uncategorized, Windows | Tagged , , , , | Leave a comment

Installing Windows SDK breaks F# Visual Studio integration

Beware! If you install the Windows SDK – perhaps to get access to the interesting looking WPF performance tools – you’ll find that it hoses your F# Visual Studio integration. I found that it causes intellisense tooltips to stop appearing, and the integrated F# interactive to crash Visual Studio. Both of these issues are a [...]

Also posted in F# | Tagged , , , , | 5 Comments

Visual Studio Toggle Brackets Macro

After using a F# heavily for a while, I often found myself wanting to add brackets (or rather, parentheses) around some text. This is normally when adding a type specification to an argument in order to be able to use dot notation, e.g. going from:

let typeName t = t.Name

which causes “error FS0072: Lookup on object [...]

Also posted in F# | Tagged , , , , | Leave a comment

(My) Essential Visual Studio add-ins

Thought you might like to know about a few Visual Studio tools and add-ins that I regularly use, and find very useful:

Copy as HTML

Fantastic little tool that lets you copy formatted text from the VS editor as HTML fragments. You can’t beat syntax highlighting to ease code readability, and this plug-in is great for adding [...]

Posted in Visual Studio | Leave a comment

Boost causes Visual Studio 2005 to crash

After experiencing some nasty crashes in Visual Studio 2005 recently, I’ve discovered that the long, heavily templated type names in version 1.33.1 of the boost headers don’t play well with the internal buffer sizes in various parts of Visual Studio (including SP1). This results in crashes while generating Intellisence data (feacp.dll) and in the debugger [...]

Posted in Visual Studio | Leave a comment

Symbol loading in Visual Studio 2005 and 2008

I don’t know if I’ve been spoilt by the lazy symbol loading in WinDbg, but it seems incredibly slow to start up unmanaged processes under Visual Studio 2005. It spends a huge amount of time attempting to load symbols for every single DLL that gets loaded. As far as I can tell it doesn’t do [...]

Posted in Visual Studio | Leave a comment