Hacker News new | past | comments | ask | show | jobs | submit login
Browse the .NET Framework source code online (microsoft.com)
142 points by zuck9 on Nov 13, 2015 | hide | past | favorite | 24 comments



Can someone put 2014 on this?

http://blogs.msdn.com/b/dotnet/archive/2014/04/09/how-your-f...

> we also launched a new web site that hosts the latest version of the .NET Reference Source, called http://sourceof.net

I think http://referencesource.microsoft.com/ might even be a little bit older.


sourceof.net redirects to referencesource.microsoft.com


It's also good to point out that .NET Core (effectively a subset of the .NET Framework) and Roslyn (C# compiler) are open source on GitHub.

See: https://github.com/dotnet and http://dotnet.github.io

I'm a .NET team member at Microsoft.


Correct me if I am wrong, but is seems like you can now compile and run Hello World on Ubuntu without needing a Windows PC (which I remember was needed at some step before)?


Yes, that's correct.


Does anyone know if you're still allowed to contribute to ReactOS/Mono/WINE after reading this?


Yes, the code is MIT licensed. Check it on github: https://github.com/microsoft/referencesource

In fact, for the past couple releases mono has replaced a lot of its library code with MS's quite successfully.

Full disclosure - I run the mono team at Xamarin.


I'd like to second the poster who said thanks for all your hard work.

It's pretty freakin' sweet to be able to develop my asp.net MVC sites in Monodevelop instead of VC. I really prefer KDE over Windows as a UI, and y'all let me work in Linux all the time now!


I second that sentiment. I mostly use C# for work - about half web stuff and half OpenGL-based user interfaces, and it's a real boon to be able to do all my work in Linux. Some other C# devs here work on Macs. We all appreciate the Mono team's hard work.


Are you guys using OpenTK?


Yeah, just a portion of it (a modified fork of the GL bindings). We wrap our own framework around the bindings and combine that with SDL2, plus Cairo/Pango for vector drawing and writing text to textures, libogg/libopus for audio files, Assimp for 3D assets, etc.


I stopped paying attention when the development stood still for a while, hence my question.

Thanks for the feedback.


It depends. The reference source site code is MS-RSL (see the License link in the upper right).

Some of the source is additionally available under MIT from the github repository, but the reference site includes things that are not "open source" like WPF and Winforms.


Thanks - and thank to you and the team for all your hard work. I just ran Hello World on Mono via dnx/dnu and my mind was blown. Who would have predicted Microsoft would be doing this in 2015?


It was alluded to that this change was coming back in May 2014 https://www.mail-archive.com/ozdotnet%40ozdotnet.com/msg1072... and then on Nov 2014 it landed -> https://www.mail-archive.com/ozdotnet@ozdotnet.com/msg11187....

Additionally check out the recent presentation from last week done by the "Open Source Engineering Team, Microsoft" which is based in Silicon Valley - https://www.youtube.com/watch?v=2ARzbQSWoIM


Thanks for your all hard work and sorry for the few times I was part of the anti-Mono crowd in the early days.

It is quite a valuable work, and if I would be running a business for mobile dev, Xamarin would be on top list vs C++ (which I use as a hobby currently).


Here's the trello board which is tracking the code replacement - https://trello.com/b/vRPTMfdz/net-framework-integration-into...



I really appreciate the effort Microsoft puts into documentation and reference materials. I think this is what sets them apart from everyone else.


Any chance for previous versions? Namely .NET 4.0.


A lot of code should just work, some will require a rebuild under the new environment... I don't think I've had many problems moving forward at any given point. I've been using C#/.Net since some of the early previews. Though, these days most of my time is spent with node.js, and I've been following rust and go with some interest.


I mean any chance of viewing source files for .NET 4.0.


I don't think sourceof.net has previous versions, but it's quite easy to just open any assembly on ILSpy.

You won't get comments, but you can read the code very clearly.


I had to do this a few times in the early 1.x/2.x days as I needed to understand some of the internals for functionality I wanted/needed... as a cheat. Since 4, it's been really good, but I'm doing far more node these days. Sometimes I do miss it, but usually not so much.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: