简体   繁体   中英

Is there a way to host the c# code editor in a visual studio extension window

I'm working on a visual studio 2010 extension and was wondering on how to obtain an existing language service ( the one for C# specifically ). All the articles I've seen on the web so far are about "Implementing your own language service", but I haven't been able to find any info on obtaining an M< existing one.

Just to provide some context here, the extension needs to open a custom wpf form on demand,in which i want to host a C# code editor window.

I'm not yet sure this is even possible, however any tips would be appreciated.

Well, it took me forever to word this question correctly, but I found a blog post answering the question on Google: Hosting the C# Code Editor in a Tool Window

I know it's kind of rude to just dump a link, but helpful nonetheless I hope.

One thing you can have a look at is the Roslyn CTP . I've seen a demo of it at the Dutch Tech Days last week and it looks quite nice.

It can help you in hosting your own coding environment and easily compile snippets. But it's still really beta and it doesn't support all the language features yet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM