Congratulations, your module project has been created!
Next Steps
Run Unit Tests
-
Build the solution in Debug mode and verify there are no errors
-
On main Visual Studio menu: TEST > Run > All Tests.
See output in Test Explorer window
Package and Deploy the module
- Build the solution in Release mode
- Verify an install folder was created in the module root folder with two zip files: *_Install.zip and *_Source.zip
- Open your web browser and open the url for the current DNN installation
- Login as a SuperUser of the DNN instance
- Open Host > Extensions and click the Install Extensions Wizard button
- Open the *_Source.zip extension package and complete the wizard
- Return to Visual Studio. You may see the message "The solution '*' has been modified outside the environment".
Click Reload and ignore. Essentially we just overwrote our code folder with the same files from our source package.
- Place the new module onto a page. You may have to add a user to your portal in order for the sample code to add an item
Customize your module
Tear out our code and put yours in! If you must add new view, edit, or settings usercontrols, you must alter the *.dnn manifest
file and re-install the module. To debug, rebuild the module project in Debug mode and select Debug > Attach to process.
Attach to the IIS or IIS Express process depending on your webserver. Whenever you are ready to deploy, build your module in
Release mode to create the packaging. Likely you will deliver the Install package to your users which won't contain the tests or
this documentation.