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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0change in module development environmentchange in module development environment
Previous
 
Next
New Post
10/7/2007 11:26 AM
 
Greetings!

I've been reading through all the DNN module development tutorials and books that I can get my hands on. I noticed that there seemed to be a shift on the way the guides are demonstrating how to setup the dev environment. In the older DNN Module Developers Guide there is a separate project created just for the new module. However in the newer guides there are folders created within the install project, inside the App_Code and DesktopModule folders.

I have tried both methods with VS 2005 and noticed that the old instructions for setting up the environment do not seem to be correct. For instance you cannot clear the project's default namespace.

So my intuition tells me that maybe the old guide was based on VS 2003 and hence the changes in VS 2005 forced changes in the way that the environment is configured.

Can anyone elaborate on this? I would also like to hear about how you guys personally have your module development environment setup. Do you do anything special that helps you package your files for distribution, etc?

Thanks in advance for the info!

 
New Post
10/7/2007 10:36 PM
 

Your intuition is correct - you've discovered the great WSP vs WAP debate that has sprung up since the introduction of VS 2005 and particular the return of Web Application Projects to VS 2005 with the release of VS2005 service pack 1.  Most of the core modules are still separate projects and require you to use VS 2003 to modify and re-compile them. As modules are upgraded, many are being converted to the dynamically compiled WSP approach. In the later versions of the DNN Starter Kit you'll find templates for both techniques - the Compiled Module Template for WAP and the "regular" module templates for WSP.

Although I initially missed being able to add a new project to the DNN solution and encapsulating each module as separate project - usually 2 when you included the SqlDataProvider project, I'm gradually coming to like the WSP approach due to its dynamic compilation which usually reduces development time due to not having to rebuild the project each time a change is made.  Most of the modules I write are for my own use on websites I develop so there is no problem including the source code as part of the module package. For those modules which require a separately compiled dll and a module package which does not include source code, I'm finding that I may first code and test the module using dynamic compilation then (cut/paste) the code into a newly created compiled module for eventual distribution.

As far as packaging goes, the "Create Module Package" capability (found under Host-->Module Defintions for your custom module) is a tremendous time-saver.  It was always a pain to write the .dnn manifest file and create the .zip folder by hand.  I also tend to develop/tweek a module's SQL tables and stored proceedures directly in the DNN devopment installation's databaseas I go along - probably not the best approach but it works for me. I also wrote a .Net windows application which uses the Microsoft SMO (Server Management Objects) classes to create the install and un-install scripts for all tables, sprocs, etc. related to the module.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0change in module development environmentchange in module development environment


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