Sunday, February 02, 2014

Roslyn and Visual Studio


Roslyn with the last public preview released in September 2012 is described as, Microsoft's 'compiler as service' project (new language object models for code generation, analysis, and refactoring, and the upcoming support for scripting and interactive use of C# and Visual Basic). It appears Roslyn is being used internally by Microsoft and is in the process of being 'solidified'.

http://blogs.msdn.com/b/csharpfaq/archive/2013/12/16/throwing-the-big-switch-on-roslyn-matt-gertz-vs-managed-languages-development-manager.aspx

Rosalyn will create APIs for the compiler which is no longer a blackbox  - the Visual Basic and C# compilers being written in C# instead of C++.

Presently the only version of Visual Studio you can use with 'Roslyn' is Visual Studio 2012. The September 2012 CTP can be downloaded here:

http://www.microsoft.com/en-us/download/details.aspx?id=34685 - get this file:

RoslynSetup.exe (10.8 MB)

The CTP supports all of the following:

  • You can use the VS Project templates to get started with the RoslynAPIs and build new VS Extensions
  • Provides assemblies that you can add to your project
  • C# interactive window 
  • C# Script File Editing Support

This image is an example of interactive C# taken from,
http://msdn.microsoft.com/en-us/vstudio/roslyn.aspx


Read about script support here:
http://visualstudiomagazine.com/articles/2011/11/16/the-roslyn-scripting-api.aspx

I look forward to the next update.

No comments:

DMCA.com Protection Status