Custom mscorlib implementation RRS feed

  • Question

  • Is it possible to make your own mscorlib replacement? How would I do this? It's really just a research question but I think it should be possible. Any insights or links will be appreciated!
    Monday, November 23, 2009 11:02 PM


All replies

  • Yes, it's possible.  You'd basically be making your own .NET framework.  One example of this in the wild is Mono - they not only implemented a runtime, but also their own framework (including their own mscorlib).
    Reed Copsey, Jr. - http://reedcopsey.com
    • Marked as answer by eryang Friday, November 27, 2009 9:25 AM
    Monday, November 23, 2009 11:16 PM
  • Thank you Reed, I know about Mono but I'm interested only in writing my own mscorlib, not the whole framework. I.e. I want to write my own implementation of Object, Int32 etc. but still reuse as much of the existing framework as possible. I'm not even sure if this makes any sense :) but let's say it does.. do you have any idea where to start?
    Tuesday, November 24, 2009 9:25 AM
  • Still I'd probably start with looking at mono as Reed says, to figure out things interact and what mono requires from the underlying platform. You might  also want use their implementation as a start.
    Tuesday, November 24, 2009 9:50 AM
  • This is definitely not possible with (commercial) Microsoft .NET Framework. Object, Int32, etc. are very tightly integrated with the CLR implementation (mscorwks.dll / clr.dll), that you cannot change almost anything.

    You could use Rotor / SSCLI, but I don't think that the license allows commercial use of your modifications:

    • Marked as answer by Michal Burger Friday, November 27, 2009 1:26 AM
    Tuesday, November 24, 2009 6:04 PM
  • I'm not interested in commercial use, thank you for the links Karel! I'll check them out.
    Tuesday, November 24, 2009 6:46 PM