How to build a dnn module

  • Select Web Project (DontNetNuke C# Compile Module)
  • Location is in your development site (C\myWebs\dnndev\DesktopModules)
  • Leave the site configured for ASP.NET 4.0
  1. BEFORE checking the module into your source control environment check the following.
  2. Edit the Project properties by double-clicking on the Properties folder in Solution Explorer
  3. On the Web tab:
    1. Under 'Start Action', make sure to set your Start URL to the correct site (ex: http://dnndev/).
    2. Under 'Servers', make sure to "Use IIS Web Server" with a project url of http://dnndev/desktopmodules/miklKbFrontPage and an Override application root URL of http://dnndev/

Steps after your project is setup.

  1. To Build and Package your Module you need to change to Release mode and then simply choose Build from the Build menu. The MSBuild scripts will do the packaging process for you. The packaging process creates an INSTALL and a SOURCE package in the PACKAGES folder within your desktopmodule/modulename folder.
  2. Installing your module in your development DotNetNuke instance is easy.Take the SOURCE ZIP file that is created in the Packages folder, upload that using the Host/Extensions page, Installation Wizard.
  3. After you've done a release for your module (typically deploying to an environment outside of your development environment) you should change the Version number, you need to do this in two places, the assemblyinfo file, and the .DNN manifest file. Next time you build the module in release mode you will get a new package (using the version number) created.
  4. For more information visit our DotNetNuke Training page.