Hi all!
I'm sorry! My English very bad!
You must download and install two tools
DotNetNuke StarterKit from dnn site
WebDeloyment from http://msdn2.microsoft.com/en-us/library/aa479568.aspx
Example: you created new Module, name is ModuleTest and dnn virtual directory is dnn4
Step 1: Add
<codeSubDirectories>
<add directoryName="HTML" />
<add directoryName="ModuleTest" />
</codeSubDirectories>
in Webconfig file.
Step 2:
Run -> cmd
run aspnet_compiler -v /dnn4 -u c:\dnnprecompiled -fixednames from command line mode
command aspnet_compiler in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727,
Step 3:
run aspnet_merge -a c:\dnnprecompiled from command line mode
command aspnet_merge in C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0 after install WebDeloyment
Step 4:
Copy App_SubCode_ModuleTest.dll, DesktopModules.ModuleTest.dll in c:\dnncompiled\bin and copy ModuleTest directory in c:\dnncompiled\DesktopModule. Now, you're packed ModuleTest
Note: test dnn ModuleTest After compiled
copy two dll file to bin directory of dnn4 site, delete sub directory ModuleTest in directory App_code, delete dnn4\DesktopModule\ModuleTest, copy ModuleTest from c:\dnncompiled\DesktopModule to dnn4\DesktopModule, delete <add directoryName="ModuleTest" /> in Webconfig file.
if you can't test and error is "can not load file or assemly ...", you need download hotfix from Microsoft site "NDP20-KB915782-X86.exe" file
Good luck!