- Setup a DNN Development environment, even if you aren't using my templates I recommend the same dev environment approach http://www.christoc.com/Tutorials/All-Tutorials/aid/1
- Using Visual Studio create a new Web Application Project, with a location of /desktopmodules/ in your DNN dev environment. (Follow Step 9 of this tutorial http://www.christoc.com/Tutorials/All-Tutorials/aid/4)
- Remove everything that Visual Studio puts into the WAP project (folders, web.config, etc).
- Add an assembly reference to DotNetNuke.dll in the website's BIN folder
- Right click on the Project properties and set properties on the project to have the Build location be the website's BIN folder (../../bin)
Change the web tab have the following properties set
IISUrl:http://dnndev.me/desktopmodules/MODULENAME
OverrideIISAppRootUrl:True
IIS App Root URL:http://dnndev.me
- Add an ASCX file to your project. (view.ascx)
- Change the BASE class for the ASCX file to inherit from PortalModuleBase
- Compile your module
- Register the module with DNN (host/extensions)
- Add the Module to a page.
TL;DR
- Save yourself the trouble of steps 2-8 and 10 by using the template.