微軟開源 C# 編譯器 Roslyn

發表於2014-04-04

在 2014 微軟 Build 大會上,Anders Hejlsberg 親自宣佈 .NET 編譯平臺 Roslyn 開源。

Anders Hejlsberg 是 Turbo Pascal 編譯器的主要作者,號稱 Delphi 和 C# 之父,同時他也是 .NET 創立者。

Roslyn 是以 API 為驅動的下一代編譯器,整合在最新版的 Visual Studio 上。它開放 C# 和 Visual Basic 編譯器的 API,使得開發者可以藉助編譯器進行解析程式碼檔案、動態為程式語言增加功能、擴充套件編譯器、自定義編譯器動作等操作。

Cloud and Enterprise 執行副總裁 Scott Guthrie 先生表示,今天宣佈的決定是 .NET 基金會廣泛倡議的一部分,公司將來開源更多的專案,現已啟動 24 個 .NET 開源專案,大部分都是經 Apache 2.0 許可釋出的。

相關英文新聞

安裝過程:

  1. In your browser, navigate to http://roslyn.codeplex.com/SourceControl/latest
  2. Click the “Clone” link and copy the URL
  3. Open the Visual Studio Team Explorer Windows (View\Team Explorer)
  4. Select the “Connect to Team Projects” option if you are already connected to a different project
  5. Under “Local Git Repositories” click the “Clone” link
  6. Enter the URL from step 2 in the top box
  7. Pick a location on your local machine to store the code
  8. Click the Clone button
  9. Switch to the “releases/build-preview” branch
    • In Team Explorer, select the “Branches” view
    • Click the “New Branch” link
    • Name your branch: releases/build-preview
    • Select: origin/releases/build-preview from the dropdown
    • Ensure “Checkout branch” is checked
    • Click “Create Branch”

Source Code

  • Clone the sources:

git clone https://git01.codeplex.com/roslyn

Getting Started

Contributing

Some of the best ways to contribute are to try things out, file bugs, and join in design conversations. Looking at the known issues is a great place to start.

更多資料

相關文章