简体   繁体   中英

Using self-compiled Roslyn from within Visual Studio?

Is there a way to configure Visual Studio such that it uses my own self-compiled / self-built (forked) version of the .NET Compiler Platform (Roslyn)?

I want to experiement with C# language extensions in a convenient way.

(I am aware of the fact that this is not an officially supported scenario as of now. Still, I consider it an interesting playground scenario for the community)

With VS2015 Update 1 (which will be available any day now) you will be able to build your Roslyn solution, set "VisualStudioSetup" as your startup project, and just run it. That will run an instance of Visual Studio with the just-built Roslyn substituted for the one built in to VS2015.

请参阅本文 ,其中给出了使用修改后的Roslyn编译器在编译时操作代码的示例

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