微軟將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 許可發布的。
相關英文新聞
- Welcome to the .NET Compiler Platform ("Roslyn")
- Microsoft open sources .NET compiler platform “Roslyn” and announces open source .NET Foundation initiative
安裝過程:
-
In your browser, navigate to http://roslyn.codeplex.com/SourceControl/latest
-
Click the "Clone" link and copy the URL
-
Open the Visual Studio Team Explorer Windows (View\Team Explorer)
-
Select the "Connect to Team Projects" option if you are already connected to a different project
-
Under “Local Git Repositories” click the “Clone” link
-
Enter the URL from step 2 in the top box
-
Pick a location on your local machine to store the code
-
Click the Clone button
-
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
- Enhanced source view, powered by Roslyn
- Building, testing and debugging the sources
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