Many of my friends feel that dnn development is complicated. Today, we provide you with a dnn C # development template, which can help you build dnn modules and facilitate development.
First, let's download it and see how to build your own module .....
This is for 2005: Visual Studio 2005 C # compiled dnn module Starter Kit
This is for 2008: Visual Studio 2008 C # compiled dnn module Starter Kit
1. Download the template and double-click it to start the installation process:
2. After the template is successfully installed, you only need to start Visual Studio 2005. You will have a new template, as shown below.
Name: name of the new module
Location: the location where the new module is to be stored. D: \ dnnstudy \ topics topmodules should be placed under the topics topmodules folder (a newly created Project)
Caeate directory for solution: deselected
Click OK
If:Unable to open the project file. This installation does not support this project type
The largest possible Chinese version of Sq1 patch did not hit please read this, help you complete: http://www.dnnme.cn/showtopic-167.aspx
3. The new modules are as follows:
4. Right-click the project name and choose properties:
Select the Web item on the left, set the startup URL, and enter the home address of your dnn;
The server selects the IIS web server. Enter the position of the new module in the project URL;
Rewrite an applicationProgramRoot URL: Enter the home address of your dnn;
If you are prompted to create a virtual directory for the project, you can look at this: http://www.dnnme.cn/showtopic-161.aspx
Add 2 DLL references
To add a module folder, there may be two layers of topmodules \ whmod to copy the next layer to the previous layer.
5. After compilation, find the DLL file of the module in the dnn \ bin folder.
This DLL file is added to the installation package during installation.
6. Execute the database Script Host> SQL. The script file to be executed is in the 01.00.00.sqldataprovider file. If the database table or stored procedure is changed, update the file.