Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedQuick suggestions for starting module devQuick suggestions for starting module dev
Previous
 
Next
New Post
9/27/2014 9:42 AM
 

Is about time that I start delving into DNN module development.
Any suggestion for a "straight" approach?

I saw there are lot of resources around, I saw Christoc templates, so I should have enough infos to read from.

My first "concern" is this for example: which is the best way to setup the dev environment so that you can easily test changes to your module inside DNN? I mean... is there a way to build your module and immediatly see the changes inside DNN or you will have each time to package/reinstall the module through HOST > Extensions or grab the dll+folders and copy them inside DNN? Or there is an easier/quicker way to develop the module right "inside" the dnn install so to just build and test?

 
New Post
9/28/2014 2:21 PM
 
as with most programming answers there are many options. The three most common coding options in DNN are website projects (WSP), web application projects (WAP) and Razor modules. WSP and Razor modules are background compiled so show changes immediately, WAP require a project compilation (and a project setup to copy the files to the right location) before changes are shown. There are various pro's and cons, http://www.azarnoush.com/post/9452368... does a decent job (WSP and Razor have similar pro's and cons). You can see a simple WSP example at http://www.adefwebserver.com/dotnetnu... , comprehensive WAP guidance at http://www.dnnsoftware.com/wiki/page/... and a useful video on Razor at http://www.dnnsoftware.com/community/...

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/29/2014 7:08 AM
 
WAP can be painfully slow if you make a lot of changes that require recompiling because it produces a new DLL each time and that restarts the site but this is a .net thing not a DNN thing. Easy to use though and you only have to install the module once through the host > extensions menu. All changes after that can be seen be refreshing the page that is using the module.

Mark
 
New Post
9/29/2014 7:34 AM
 
Hallo thank you all for your answers. I was oriented to web application, but I thought there was some kind of "trick/workaround" to have the dlls and files immediatly moved inside DNN install upon each build so that you can just BUILD > REFRESH DNN PAGE > SEE CHANGES
 
New Post
9/29/2014 8:07 AM
 

Max, I use build scripts to copy the files over to the DNN folders when I compile the solution.  If you want a copy of the scripts I can send them to you or post them somewhere.  

More specifically, I use the build events of the project that call a powershell script.  It takes parameters so I can use the same script for new projects with very few changes.  The script creates the files for the install, source zip file (if its a release build, if it's a debug build the source is not refreshed) and then copies the UI and assembly files over to the DNN site.  It only copies files that have changed so its very quick. 

The site recompile time is near instant for me.  Make your changes, hit F6 (or whatever key you set for the solution build) and hit F5 in the browser.  Done.  Simple.  

There are still areas of this process that can be improved but it works great as it is.  Let me know if you want a copy of them.




Professional DNN Extensions, custom solutions and mobile apps since 2003.
www.OnyakTech.com
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedQuick suggestions for starting module devQuick suggestions for starting module dev


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out