天天看點

c# 程式設計語言 編譯器 Roslyn

4 月3日,微軟向公衆釋出了Roslyn編譯器項目,該項目采用了Apache開源許可協定。C#的創始人 Anders Hejlsberg在Build大會的第二場主題演講中将這一令人震驚的消息公之于衆。微軟向Roslyn項目投入了大量人力物力,從頭重寫了C#和VB.NET的編譯器,同時向開發人員開放了編譯過程,以便他們提供更好的工具和編輯器支援。

如今整個項目都釋出在微軟的CodePlex站點上,無論是在Windows下,還是在其它平台下,任何開發人員都可以免費獲得 。如果機器安裝了Git,還可以通過一次clone操作直接獲得整個項目。

如果隻想嘗試一下Roslyn,可以到Connect站點上下載下傳預覽版。如果想更深入地了解源代碼,并在自己的環境中編譯源代碼,以滿足自己測試和實驗的需要,則需安裝Visual Studio 2013專業版(或更高版本)、Visual Studio 2013 SDK、Visual Studio 2013 Update 2 RC,以及.NET編譯器平台最終使用者預覽版(.NET Compiler Platform (Roslyn) End User Preview)。

Roslyn首頁上的“項目路線圖(roadmap)”頁面中羅列了很多正在開發的功能,絕大部分都是一些特性添加和品質提升。“項目狀态”頁面則主要顯示了C#和VB新功能開發的最新狀态。

這次釋出的作為.NET基礎的核心技術,标志着 微軟在思想上的重大變化。盡管CLR不開源,但是能看到編譯器,也能為各個平台的開發者帶來好處。(例如,Mono的CLR允許Roslyn生成的代碼在非微軟平台上運作)。

英文原文: C# Compiler Released As Open Source

http://www.infoq.com/news/2014/04/roslyn_oss

QQ群:287566232

點選連結加入群【c# 編譯器 Roslyn】:http://jq.qq.com/?_wv=1027&k=errCCb

 百度網盤下載下傳:http://pan.baidu.com/s/1eQAb7Uy 【2014.11.11】

Today Microsoft has released the Roslyn compiler project to the public, under the Apache open source license.  This stunning announcement was made during Build’s second keynote by C# creator Anders Hejlsberg.  Roslyn represents the significant investment Microsoft has made in rewriting its C# and VB .NET compilers from scratch while opening up the compilation process to developers to promote better tooling and editor support.

Now the entire project is available on Microsoft’s CodePlex, freely available for use by all developers whether they are on Windows or otherwise.  With Git installed, you can obtain the project directly via a clone operation. 

If you only want to try out Roslyn, the preview is available on Connect.  If you want to truly dig into the code and compile it on your own environment for testing and experimentation, you will need VS2013 Professional or higher, the Visual Studio 2013 SDK, VS2013 Update 2 RC, and the .NET Compiler Platform (Roslyn) End User Preview. 

The roadmap listed on Roslyn’s project page lists numerous items under development most of which can be classified as a feature addition or quality improvement.  A status page exists to list the current state of new features being written for C# and VB.

Today’s release of key technology at the foundation of .NET marks an important shift in Microsoft’s thinking.  While the runtime (CLR) is not open source, the compiler’s visibility should lead to improved benefits for all regardless of their platform.  (The Mono project’s CLR allows non-Microsoft platforms to run the code produced by Roslyn.)

http://www.infoq.com/news/2014/04/roslyn_oss