微軟將C#編譯器Roslyn開源

jopen 10年前發布 | 11K 次閱讀 Roslyn

微軟將C#編譯器Roslyn開源

        在 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.

        更多資料

來自: roslyn.codeplex.com

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!