Save dynamic assembly

In some servers we can not get the permission to create dynamic assembly with strong name, for that, we can generate the dynamic assembly and save it as a dll file in our PC and deploy it to the server to avoid dynamic assembly.

To save the dynamic assembly need to use Lephone.CodeGen in command line as:

Lephone.CodeGen dll YourModels.dll

And it will generate a DbEntry_MemoryAssembly.dll file in the folder you run it. Just copy the dll to the bin folder of your project will be fine.

Remember to set Lephone.Code.exe be the same NameMapper as your project.

Last edited Apr 25, 2010 at 2:04 PM by lifeng, version 2

Comments

No comments yet.