Save dynamic assembly

Attention: this article belongs to working in progress. It means it isn’t in the current release and not stable yet, but you can get the latest check-in in source code repository to taste of it.

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 Dec 15, 2009 at 3:16 AM by lifeng, version 11


No comments yet.