Is there such a thing as a step-by-step guide to create a custo开发者_运维知识库m framework in .NET?
I am trying to create one myself, have been reading the materials on the MS website about assemblies and GAC etc. but am getting more and more confused.
I am not trying to do anything particular at this point. I am just trying to learn how to develop a custom framework. By framework I meant something like the .NET Framework, or http://en.wikipedia.org/wiki/Software_framework. I know I have to do something with the GAC first, and then make sure that it is strong-named etc.
You should to read this book: Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (2nd Edition)
The first task is to decide if a framework is appropriate, in most cases it is not.
Writing frameworks are orders of magnitude more complex than writing bespoke software. The biggest problem with creating a framework is that you have to design for backward compatibility. In particular; once you have added something to a framework, it can only be removed with extreme difficulty.
I have written about this here; where you also can find further references in this regard. I also provide some guidelines for deciding on whether building a framework is appropriate for your organization here.
精彩评论