What is the assembly version binding policy?
Basically, the assembly version binding policy is just a rule that allows specifying a new version of assembly when the application asks for a new version. This is a very handy feature and allows programmers to speed up their coding.
How to configure the assembly version binding policy
If you want to configure the assembly version binding policy, follow any of the simple steps below:
- If you are using .NET Framework 2.0 Configuration tool, click to expand My Computer, right-click on Configured Assemblies and, finally, click Add
- If you are using the Configure Assembly wizard, you can select any assembly that has been already added to the assembly cache. You then click Choose Assembly and you are done. One way around this is to enter the assembly information by hand. Click Finish and you are done.
- You can go to the Properties dialog box that will appear and click the Binding Policy tab. You can now enter the binding redirections from the requested version to the brand new version. You can also select the Code-bases tab and choose any codebases that apply to your specific version of the assembly. Click OK and you are finished.
Useful applications of the assembly version binding policy
Assembly version binding policy is very useful when it comes to: c# binding, ASP.NET binding, global assembly cache (GAC) assembly, strong name assembly, VB.NET assembly, etc. You can work with it in the assembly .NET framework with ease. The binding policy is a key element of the .NET environment and, if mastered properly, can bring many benefits to the programmer.
What should you know about the assembly version binding policy?
You should basically know what it is, how you can configure it, and its applications. You will need to know all of this for the MCTS Exam 70-536.
Key Exam Points
- Learn how to configure the assembly version binding policy
- Study lots of examples of implementations
- Work on your own so that you fully understand the assembly version binding policy!
This article is based on the 2nd edition of the Microsoft .Net Framework Application Training Kit with the purpose to help 70-536 Exam takers to succeed. I constantly look for ways to improve the content. Please leave a comment about this article or drop me a message if you would like to see changes for this site.