简体   繁体   English

现在VS2015已经发布,在调试支持下修改Roslyn的受支持方法是什么?

[英]Now that VS2015 is out, what's a supported way to modify Roslyn, with debugging support?

The Context 上下文

We'd like to modify Roslyn and be able to debug it while compiling with it. 我们希望修改Roslyn并在对其进行编译时进行调试。 Pre-VS2015 release, doing this was a painful process that didn't flow very well. 在VS2015之前的版本中,这样做是一个痛苦的过程,进展不顺利。

Our goal is to develop a C# variant compiler. 我们的目标是开发C#变体编译器。

The Dream 梦想

Pre-VS2015, executing and debugging your modded Roslyn required the opening of a second VS IDE (experimental) set to use your modded Roslyn. 在VS2015之前,要执行和调试经过修改的Roslyn,需要打开第二个VS IDE(实验)集,以使用经过修改的Roslyn。 This process wasn't straight forward to setup properly, and oftentimes would break your VS2015 installation. 此过程无法直接正确设置,通常会中断VS2015的安装。

Post-VS2015, is there a better setup and process possible to modify and debug Roslyn? VS2015之后,是否有更好的设置和流程可以修改和调试Roslyn?

I have installed Visual Studio 2015 but it looks like I need more required bits. 我已经安装了Visual Studio 2015,但看起来我需要更多必需的位。 After that I'm unsure how to run the tests and try the changes in VS2015. 之后,我不确定如何运行测试并尝试在VS2015中进行更改。

We have our current documented process of testing your own versions of Roslyn here . 我们有测试自己的罗斯林版本的当前文件的过程在这里 As long as you're on Visual Studio 2015 Update 1 or later (where we did all the work to support this), everything should work. 只要您使用的是Visual Studio 2015 Update 1或更高版本(我们在其中进行了所有支持工作),一切都应该正常工作。

The executive summary of those instructions is if you now enlist into Roslyn, you can choose the "VisualStudioSetup" project and just hit F5 to run. 这些说明的执行摘要是,如果您现在加入Roslyn,则可以选择“ VisualStudioSetup”项目,然后按F5键即可运行。 That builds to .vsix files in your build directory you can also install. 这将生成为您也可以安装的生成目录中的.vsix文件。 If you want to, there's a CompilerExtension project that produces a compiler you can build with. 如果需要的话,有一个CompilerExtension项目可以生成可以使用的编译器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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