开发者

I've created my first language in Irony, now how do I get it into Visual Studio 2010?

开发者 https://www.devze.com 2023-02-25 11:05 出处:网络
I tried following this, but I get an error at the end of the wizard. I\'m not sure it\'s compatible with 2010. I\'m watching this video on Ook, but I\'m not sure how to tie it in with Irony. I think I

I tried following this, but I get an error at the end of the wizard. I'm not sure it's compatible with 2010. I'm watching this video on Ook, but I'm not sure how to tie it in with Irony. I think Irony's already done a lot of the grunt work for me, I just don't k开发者_JAVA百科now how to get it to play nicely with ITaggerProvider and the 100 other interfaces VS exposes. How do I do that?


  • From your template (the zip file) extract the file IronyLanguageServicePackage.csproj
  • Find the line with the import of Microsoft.VsSDK.targets (it should be the 111th line) and change the version of the SDK from v9.0 to v10.0
  • Save the file and drag & drop it over the zip template in order to overwrite the old version inside the archive

Now you can use the wizard


Irony is completely compatible with VS2010. I didn't create mine first in VS2010, but migrated my irony based Language Service over from VS2008 though it works just fine. I didn't have to change anything within Irony to get it to work I don't think, and there wasn't much that changed for the project itself.

I found the same article you linked to very useful when I wrote my language service (I started off at the same spot).

The only major changes between that and VS2010 seems to be in distribution. Before you try to do any packaging and installing make sure you test it thoroughly using the experimental hive. It's used exactly how that article describes just the path needs to be to the VS2010 version.

Packaging for install is a bit annoying, but I found this article very useful http://msdn.microsoft.com/en-us/library/bb458038.aspx

Other than that there really isn't any magic, that article has you creating a basic language service that interacts with the VS interfaces just fine. It doesn't cover more advanced operations, but you should message out about a specific problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消