How to register new assembly by code in MSD axapta

If you want to register new assembly by code in axapta then you can try following code in your programme.



new SysReference(referenceName, assemblyName...).addToAOT();