开发者

What is a general step-by-step guide to create a custom framework in .NET?

开发者 https://www.devze.com 2022-12-16 21:19 出处:网络
Is there such a thing as a step-by-step guide to create a custo开发者_运维知识库m framework in .NET?

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)

What is a general step-by-step guide to create a custom framework in .NET?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消