Installing a Custom Visual Studio Language Service

后端 未结 2 1719
小鲜肉
小鲜肉 2021-02-11 07:13

I\'ve written a new Visual Studio language service for my software studio\'s internal scripting language following the directions from a very useful article Writing Your First V

2条回答
  •  Happy的楠姐
    2021-02-11 07:51

    One other thing that I spent a couple of hours bumping into that the MSDN tutorial doesn't mention: If you're deploying to a 64-bit computer, the instructions as given won't work. After quite a bit of searching, I stumbled across a posting halfway down this forum thread that explains it: http://social.msdn.microsoft.com/Forums/en/vsx/thread/989c5bea-3dd0-4e60-891a-f8f006e1b9a2

    The MSDN tutorial says to install your registry keys here and regpkg.exe generates registry keys here as well:

    HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\...
    

    But on 64-bit computers, Visual Studio loads its settings not from there but from here:

    HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\VisualStudio\9.0\...
    

    Notice that extra "Wow6432Node" in there; the registry keys are otherwise identical but for that extra "Wow6432Node" in the path. So on 64-bit machines, you'll either need to use those extended registry keys, or you can install a hybrid 32/64-bit .dll to both sets of registry keys without ill effect. I have a .reg file that installs to both sets of keys, and it works very nicely.

    Hope this helps save somebody else some time!

    (For what it's worth, I used the "Codebase" mode for regpkg, not the "Assembly" mode.)

提交回复
热议问题