-
-
Notifications
You must be signed in to change notification settings - Fork 56
Getting Started with the Source Code
Will Strohl edited this page Sep 21, 2022
·
6 revisions
Getting started with the source code requires a few steps. First and foremost, you should become familiar with DNN.
- Fork the repository into your own GitHub repository.
- Create a directory on your development computer where the project will live. Ideally, the path should be something like
C:\Work\Hotcakes\. - Create a
Websitefolder in this new directory and install DNN Platform version09.02.02there. - Install the latest Hotcakes Commerce release into the website. This gets your database to where it needs to be.
- Clone your repository into the empty
Hotcakesfolder. - Be sure to have this repository added as the
upstreamremote and your repository as theoriginremote. - Update the
web.configto reflect your database connection string. - Copy the contents of the folder in
C:\Work\Hotcakes\Website\Portals\_defaultto the same folder inside the cloned Hotcakes repository (do not overwrite any files, just copy the missing files and skip the others). - Delete all of the files in the
Websitedirectory, including theWebsitefolder. - Move the contents of the cloned Hotcakes repository to the directory where I created the DNN solution, in this case,
C:\Work\Hotcakes\.
You can now begin looking at the code and building it.
- Open Visual Studio using the
Run as Administratorfeature and open the solution. In some environments, you might not get all of the dependencies installed (e.g., some AWS WorkSpaces). If this happens, it may be a missing dependency. For example,Microsoft.AspNet.MVCmight not have been fully copied to theMicrosoft.NETfolder. To solve this, simply install the dependency using theConsolePackageManagertool with the commandInstall-Package Microsoft.AspNet.MVC -Version 4.0.40804.0(You can get the version by checking the library's.csprojfile corresponding to the error.) Then, copy the.dllfrom that reference to the following pathC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2. This solves the whole problem. - If the PesonaBar toolbar is not visible you should delete the
.resourcesfile found in theC:\Work\Hotcakes\Website\DesktopModules\Admin\Dnn.PersonaBar\Resources\directory.
Relevant Wiki Articles:
External Resources: