Microsoft Releases Source of .NET Base Classes
Disgruntled Fungus writes "A few months ago, we discussed Microsoft's intention to open source the .NET libraries. According to a developer's official blog, the source code is now available. The source to libraries such as System, IO, Windows.Forms, etc. can now be viewed and used for debugging purposes from within Visual Studio. Instructions for doing so have also been provided. The source code has been released with a read-only license and 'does not apply to users developing software for a non-Windows platform that has "the same or substantially the same features or functionality" as the .NET Framework.'"
Microsoft has just begun killing Mono.
(Think "oh, that implementation really looks like ours! you must have read it! here's a lawsuit for you")
we discovered a new way to think.
A few months ago, we discussed Microsoft's intention to open source the .NET libraries.
Yes, and as one of the first posters pointed out, unlike Java for instance, this is NOT being published under an open source licence, Microsoft even says so. So why do you keep using the term?
Being bitter is drinking poison and hoping someone else will die
Can't wait to see the best bits of it on The Daily WTF! \o/
You just got troll'd!
Too bad the library is written in VB....
Of course, anyone doing serious development with .NET has been looking at the source for years now in any case by using Lutz Roeder's .NET Reflector, which is a C# (etc) decompiler (not just a disassembler). It's the only way to reliably discover and work around the horrible bugs and misdesigns in MS's libraries. (Yes, WSE, I'm looking at you.)
:-)
Reflector is downloadable from http://www.aisto.com/roeder/dotnet/. And it's obfuscated, so it won't run usefully on itself
* Each source file you debug into is dynamically downloaded once for each session and not retained.
* Setting breakpoints in the source is a multi-step process, because the source is different from the corresponding symbol files because the copyright banners they insert change the CRC. You have to tell the IDE to ignore that.
* You have to manually tell it to load symbols for each file.
* The symbols are also served up from an MS server (but they are cached beyond a single session).
* Some of these symbol files are 10MB, so VS "may be unresponsive" while you download them.
* "Go to Definition" doesn't work.
This in contrast to the same support in Eclipse, where all you have to do is
* Download the source
* Tell the IDE where to find the source 14) Can I point a web browser at the symbols URL and download the symbols directly?
No, you'll get an HTTP 400 (Bad Request) response. So in addition, you'll need a professional version of Visual Studio, because the Express versions don't support the Source Server feature.
Given that it all seems so inconvenient to use, I think I may be sticking to Reflector.
Microsoft is not releasing those libraries as open source. What they are doing is what they and other companies have been doing for a long time: releasing some of their source code in read-only form to "help" people debug.
In fact, the real problem with this is that, in case of ambiguities, people will code increasingly to Microsoft's source code instead of the specification. Furthermore, after having released it, Microsoft may attempt to claim that the Mono project copied some of their source code in violation of the license.
One can't prevent Microsoft from doing this, but it's not a good thing.
This release is not intended to benefit the Slashdot crowd. Of course it isn't "open source", and Microsoft never said it was. This is Microsoft assisting developers working with .NET on the Windows platform. There are a huge number of developers who fit that description. Sorry if you don't, but not everything is about you.
The CLR 2.0 source (the runtime, not just the BCL) code is up too, it's in C++, not managed code. Strangley the article and summary seem to completely miss that fact. I'm very surprised, because it's much more significant, and it can't be ascertained using the decompilers like the managed code can. THIS is probably the thing that can kill mono.
Speak for yourself.