Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Packaging DNN Modules
Previous Previous
 
Next Next
New Post 5/28/2008 11:36 PM
Unresolved
User is offline r_honey
133 posts
9th Ranked


Packaging DNN Modules 

Michael Washington explains in detail the steps required for packaging a module at:

http://www.adefwebserver.com/DotNetNukeHELP/DNN_PackageModule/Default.htm

However, there are 2 points that are missing from that tutorial:

1) The DLLs are created Folder wise. That means dll for code-behinds in DesktopModules & App_Code files are generated separately. And if there are sub-folders in the main module folders, they again have separate assemblies generated. But I have seen modules (including those shipped with DNN) have just 2 assemblies, the main logic assembly (including code-behinds) & the SqlDataProvider assembly??

So, how can I achieve the same, while preserving the folder structure of my module (or would I need to put everything in the same folder)??

2) I don't want to provide my clients with the ascx markup. So, if I create my assemblies without the following option:

Allow this precompiled site to be updatable

Would it be possible for DNN to pick up my module controls from the assembly. If yes, then how should I provide the control entries in the <controls> & <files> section of DNN configuration file for my module???

 
New Post 5/29/2008 2:18 AM
User is offline Wes Tatters
410 posts
8th Ranked




Re: Packaging DNN Modules 

The packaging approach outlined by Michael - is for packaging up dynamic modules  - and is really
a bit of a messy work around if you want to distribute compiled modules only

In reality, the dynamic module system is really designed for distributing OPEN modules with all the
code and ascx files packaged together.

If you want to create a module that has dlls like the modules you have seen with just 2 assemblies 
you cannot use the dynamic module methodology.

Instead you need to convert your module to a web application project
 - which lets your build a single DLL for your entire project and 
a seperate web application project for your dataprovider so that it will have its own DLL as well.

As for not distributing the ascx - last time I checked - DNN did not support Full Compile deployment.
So at a guess this is still not an option.

Westa

 
New Post 5/29/2008 2:53 AM
User is offline r_honey
133 posts
9th Ranked


Re: Packaging DNN Modules 
Modified By r_honey  on 5/29/2008 4:53:44 AM)

I have found WSP approach better for development and WAP approach better for deployment. With WSP, I can modify the code-behinds without having the entire installation to recompile (off-course changes to App_Code classes need recompilation).

Although, I have not checked it, I believe that when you debug WAP projects by attaching to ASP.NET process, the source code files (including code-behinds) would be locked up by VS. In effect, you would need to stop the process, make the change, restart & re-attach.

I believe converting from WSP to WAP should not be difficult, as code classes from App_Code can be simply copied. I have no idea about what to do with control (ascx) files & code-behinds as I not developed any WAP projects before.

Any idea for how to convert an existing DNN WSP module to a WAP module or know of any automated tools for that???

 
New Post 5/29/2008 7:33 AM
User is offline Wes Tatters
410 posts
8th Ranked




Re: Packaging DNN Modules 

Yep could not agree more about  WSP being far and away the fastest way to debug and develop.

A lot depends on how your code is written - but for the most part its just not that difficult.

CREATE a WAP project - and copy all your code into the one folder.

Any APP_CODE classes get removed from APP_CODE and copied into the WAP project as well.
Code besides and such all work fine - pretty much everything will stay the same.

BUT having said that - you may want to code you sqlprovider code in a seperate WAP project

Westa

 
New Post 5/29/2008 9:07 AM
User is offline r_honey
133 posts
9th Ranked


Re: Packaging DNN Modules 

So, you mean that I just need to copy, paste my existing files into the new WAP project ensuring that none of them gets copied to the App_Code folder, and that would be it?? If that's so, I would always develop my projects as WSP & deploy them as WAP.

That also means that I dont need to copy my files into the WAP project. I can just reference them from the new WAP project, by selecting 'Add Existing Item' option from VS context-menu appearing on right-clicking a Project node in Solution Explorer.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Packaging DNN Modules
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP