📜 ⬆️ ⬇️

Roslyn Project - compiler as a service

Not so long ago, in the framework of the Build conference, there was a report “An Future directions for C # and Visual Basic” by Anders Hejlsberg, in which the Roslyn Project was announced. Now not much is known about this development, but I will try to highlight the most interesting moments that are currently available.

Currently, the C # and Visual Basic compilers are a black box - they take the original high-level code and give us the finished IL-code. Roslyn Project is a compiler as a service, i.e. A compiler that provides an API to the developer that allows it to get to its internal data. Now you can analyze the code and take part in the compilation - to modify the source code, to create additional functionality for C # and VB.


Among other things, Roslyn Project provides 4 types of API, on the basis of which Language serivces will be built (they are indicated in brackets):

')
During the report, another interesting project functionality was shown - this is the Copy Paste C # code in VB.NET and back.

At the moment, the Roslyn Project has not yet been released, but the CTP (Community Technology Preview) can be viewed in two weeks, and it will be fully released with C # vNext (the C # version, which will be after C # 5.0) and enter Visual Studio.

Source: https://habr.com/ru/post/129833/


All Articles