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 real pain; especially the inability to see the inferred types “live”, which is pretty much essential for F# development – where the focus is on compile time correctness.

I remembered seeing a post on that Windows SDK blog that I’d come across relating to a similar issue with the XAML editor (I’ve been doing some work with WPF recently, more on that in a later post) so thought I’d try the steps they recommend, in short, re-registering TextMgrP.dll:

regsvr32 "%CommonProgramFiles%\Microsoft Shared\MSEnv\TextMgrP.dll"

…and all my problems went away. Hope you find this useful.

This entry was posted in F#, Visual Studio and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

5 Comments

  1. L. Fregimus
    Posted May 25, 2009 at 12:42 am | Permalink

    Thank you so much, you saved my day! I installed the SDK on top of VS2008 SP1, and my F# intellisense and background compilation indeed got immediately broken. Your solution worked for me.

  2. Posted May 28, 2009 at 10:26 am | Permalink

    Glad to be of assistance!

  3. Vamper Attila
    Posted July 7, 2009 at 1:50 pm | Permalink

    Thank a lot for you ! :) .. but i don’t understand why this happened .. again THX !

  4. Posted August 13, 2009 at 8:03 am | Permalink

    This resolved the issue for me as well, happy to get my F# environment back.

    One remark though, if you are running a 64-BIT OS like I do, the command in the suggested solution might need to be tweaked to

    regsvr32 “C:\Program Files (x86)\Microsoft Shared\MSEnv\TextMgrP.dll”

    Because VS is 32 bit while %commonprogramfiles% refers to the standard ‘program files’ directory.

  5. Posted August 18, 2009 at 9:31 am | Permalink

    Thanks the info. I haven’t yet moved to a 64-bit version of the OS, unfortunately.

    Ian

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">