简体   繁体   中英

Where can I find source code for .net CLR and C#?

Is the source code for Microsoft .net CLR and C# open? If yes, where can I download/browse it?

您可以在Netmassdownloader的帮助下下载.NET的源代码。

You can use Reflector to view them.

Or, if you have Resharper 5 installed, you can download the source cod e for viewing purpose.

替代文字
(source: jetbrains.com )

But no, it is not open source, despite that you can download and view the source code.

Part of .NET Core is now open-source, starting with .NET Core 5.0.
Here is the project site: http://www.dotnetfoundation.org/netcore5
Here is the code: https://github.com/dotnet/corefx

While I'm not intimately familiar with the licensing of Microsoft's available source code, there is at least one implementation of the CLR and C# compiler that is open source -- Novell's Mono.

http://www.mono-project.com/

You can have a look at the official one: Microsoft Reference Source .

You can browse the source code in Visual Studio as well, while debugging. To enable this feature, follow the steps described here: Configure Visual Studio 2013 for debugging .NET framework

for BCL you can check here (codeplex)

and for the CLR it self here (githup)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM