Download Source codePackage
First, you need to get the module sourceCodeFor dnn modules, a source code package is provided. For unofficial modules, if they are open-source, a source code package is also provided.
For example, the announcement module:
For the differences between the code package, see this: what is the difference between the dnn install package, the dnn source package and the dnn starterkit package?
Install the source package:
There is no difference between installing the source code package and installing other modules. you can install the package normally. However, note that the official source code package will automatically install all required source files, however, if it is a third-party source code package, sometimes it is impossible to install all the files. In this case, you extract the source code package and directly overwrite the directory under topmodules.
The source code package of the announcement module is installed as follows:
Add to your dnn Development Environment
Right-click your dnn solution and choose add-> existing project.
Browse to the announcement directory and add dotnetnuke. Announcements. vbproj
Then, the announcement project will be added,
Then, add the sqldataprovider module under the directory of providers \ dataproviders \ sqldataprovider in the same way,
Compile
After the project is added, right-click the dotnetnuke. Announcements project and select "rebuild". Soon, the compilation is successful:
How to handle compilation errors
The modules you download from the dnn official website can be compiled. If a compilation error occurs, the general problem is that your dnn version may be a little low, as a result, the referenced version of the module to dotnetnuke is incorrect. You can create a reference again.
For unofficial modules, you can try to eliminate debugging errors. If you find that this is not just a simple problem, we suggest you consult the author to see if a new version is available.