Type forwarding allows you to move a type between assemblies. So this is originally TypeAin AssemblyA. Using type forwarding, you can complete TypeAin AssemblyB.
Subtlety is a code that has already been compiled, does not see a change - they request a type in AssemblyA, and the runtime gives them a type from AssemblyB. This is very important if you have existing code.
Nevertheless; The new code cannot be recompiled referring to TypeAwithout a link AssemblyB.
So:
- old customers do not need to recompile.
- however you need to rebuild both
AssemblyAand AssemblyBin the example above - New code (or any recompiled code) should now reference
AssemblyB(new)
source
share