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.0Compiling and DeploymentCompiling and Deployment
Previous
 
Next
New Post
8/21/2009 12:03 PM
 

 

Hi Folks,

I'm a bit confused, and I'm hoping a few quick answers from the community here can set me straight.

I've created a custom module for DNN, and I've got it working great in my test environment.  Now it's time to compile and package it for deployment.  I did the development by hand in VS2008 (create the folder under DesktopModules, add a web form, etc.).  When I started, I didn't realize I could use the Starter Kits to create all of the templates for me.

The issue is that now I'm not sure how to get my modules compiled properly.  If I "Publish Web Site" in VS2008, I get a bunch of dll files like App_Web_album.ascx.4c9b7437.dll.  What I really want is one big DLL like MyCompany.MyProject.dll.

How do I accomplish that?  It occurs to me now that maybe I should have created my module as a sub-project under DNN instead of just creating the folders.  Is that right?

What can I do at this point to get things compiled the way they should be?

Thanks in advance for your help!

   - Bryan

 
New Post
8/21/2009 12:37 PM
 

You don't want to use the publish option.

In the VS menu there should be 'Project', under which should be 'YOURPROJECT Properties...'; Clicking this will open the properties 

On the application tab, Fill in the 'Assembly name' with what you want your assembly to be. Most often I find that the namespace the project is in to be a good one, but that's dependent on your namespace naming practices.

Next is the 'Build' tab - On here you select a configuration and can specify various things for it; regarding the DLL that is created, There is an 'Output Path' towards the bottom of this section, which should have something like "Bin\Debug". This is where (in relation to your proj file) the DLL will be placed when you do a "Build->Build MYPROJECT"  (or any other way to build the project).

Navigate to that location and you should find a DLL with the name you specified in the Application tab. 

This all, of course, depends on using WAP and not WSP. (Oh acronyms, how I love to look up what you are). (WSP doesn't create a DLL)

Then you will place your *.dnn file with all the files needed into a zip file and you will be good to start debugging what's not quite right in the dnn file. :-P  Actually, if the module is working on your test site - I think there is a way to generate the manifest file for it, never done that, but I think it exists...

 

Hope that helps

 
New Post
8/21/2009 1:55 PM
 

Baatezu wrote

This all, of course, depends on using WAP and not WSP. (Oh acronyms, how I love to look up what you are). (WSP doesn't create a DLL)

I think this may be the problem.  There is no Project menu in Visual Studio.

Is there a way to change the project type?  Or open the DNN project as a Web Application instead of a Web Site?

 
New Post
8/21/2009 3:29 PM
 

A quick search in Google shows me that it's possible to convert from a Web Site Project to a Web Application Project, but it's not simple.  Very messy.

What confuses me is that the DNN Starter Kit also creates a Web Site Project, and Shaun's own instructions for Module Development (link) includes the creation of a Web Site Proct as well.

Surely there must be something I'm missing.  It would seem that there has to be a way to do this without starting over from square one with a Web Application Project, right?

How are the rest of you setting up your Visual Studio 2008?

 
New Post
8/21/2009 4:27 PM
 

 What I would do to convert - Just make a new WAP and then C&P stuff over. I've had to do that in the past - It's not pretty, but it's not terrible.

I wouldn't argue that the simplest way to develop a module on a local system would be a WSP from within the DotNetNuke solution, but that's not the best way to develop a module to use on other systems (IMO - haven't done it much, so I'm lacking a lot of real experience on this).

I've spent a lot of time developing modules for my own consumption and have made (and almost daily update) a robust (and fairly me specific or else I'd have shared) CodeSmith Tools template to generate my module base for me; So I've not actually used visual studio's to create a project to use for a new module since about 2005, heh.

This is a sample of the proj file I use in my template. I ripped out all the codesmith stuff and renamed things; It's really basic. It will open though, so it could work as a basis to start your projects with.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Compiling and DeploymentCompiling and Deployment


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