简体   繁体   English

在哪里可以找到.net CLR和C#的源代码?

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

Is the source code for Microsoft .net CLR and C# open? Microsoft .net CLR和C#的源代码是否打开? If yes, where can I download/browse it? 如果是,我可以在哪里下载/浏览它?

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

You can use Reflector to view them. 您可以使用Reflector来查看它们。

Or, if you have Resharper 5 installed, you can download the source cod e for viewing purpose. 或者,如果您安装了Resharper 5,则可以下载源代码以供查看。

替代文字
(source: jetbrains.com ) (来源: 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. 从.NET Core 5.0开始,.NET Core的一部分现已开源。
Here is the project site: http://www.dotnetfoundation.org/netcore5 这是项目站点: http : //www.dotnetfoundation.org/netcore5
Here is the code: https://github.com/dotnet/corefx 这是代码: 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. 虽然我并不十分熟悉的微软的可用源代码的许可,至少有一个实现的CLR和C#编译器是开源的- Novell公司的Mono。

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

You can have a look at the official one: Microsoft Reference Source . 您可以看一下官方的: Microsoft参考源

You can browse the source code in Visual Studio as well, while debugging. 您也可以在调试时在Visual Studio中浏览源代码。 To enable this feature, follow the steps described here: Configure Visual Studio 2013 for debugging .NET framework 若要启用此功能,请按照此处描述的步骤进行操作: 配置Visual Studio 2013以调试.NET Framework

for BCL you can check here (codeplex) 对于BCL,您可以在此处检查(codeplex)

and for the CLR it self here (githup) 对于CLR,它在这里本身(githup)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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