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.0Visual Studio and the new Compiled Modules templateVisual Studio and the new Compiled Modules template
Previous
 
Next
New Post
3/13/2007 3:02 AM
 

Having spent a whole heap of time looking at the same issues

- the first question you really need to ask yourself is.

Do I REALLY need to create compiled modules right now ???
And then - Do I REALLY need to create compiled modules at all.

Frankly - the compiled modules approach can be a huge nightmare waiting to happen.

You are likely to face referencing issues, versioning issues, wierd file compatibility issues with controls that seem to loose track of their code behind code.

Not to mention the compile / debug dance.

Basically, the native approach of asp.net 2.0 is to work using a compile on demand system.
And for the most part this is also the native approach for dnn 4.4.1. (aside from dotnetnuke.library and friends)

SO INSTEAD LETS LETS LOOK AT THE OTHER OPTION.

WE DONT CREATE A MODULE SOLUTION
AND WE DONT WORK WITH THE DNN SOLUTION

INSTEAD

1. when you start VS2005 - you browse to your development website and open it directly - NOT THE SOLUTION - but the SITE ITSELF.

2. open the site properties inside VS2005 and set the compile site option to DONT COMPILE.

3. Setup your debug options to target your website

you are now ready to develop

4. Use the DNN Dynamic Module template to make a new module.

it creates starter code in:

\App_Code\YourModule
\DesktopModules\YourModule

You can now create your module components in the DesptopModules area
And any library components - read .vb files in the \App_Code\ area.

Now here is the interesting part ...

To debug your code - you hit debug - and the site starts (Assuming you set the debug settings)

YOU dont need to compile your code - OR the dnn portal for this to work.

And you can even continue to edit code while you are in debug ... with the webserver - recompiling the code on the fly with each page request.

>>>>>>>>>>

You also gain full access to the ENTIRE dnn site space - which means you can seamlessly include DNN components on your own pages without referencing nightmares -

For example - want a custom signin module - just cut and paste the whole DNN signin.aspx/signin.aspx.vb code into a new module and hack away - (dont even get me started on the nightmare referencing issues you get trying to do this in a standalone)

>>>>>>>>>

Oh and if you do need to eventually export out a COMPILED.dll  and not distribute your source code - you still can - simply by publishing the web site - and packaging up to resulting compiled module files.

Westa





 
New Post
3/13/2007 3:16 AM
 

>> have also just discovered something else odd. I have been doing the visual design in the \DesktopModule directory under the web site rather than in the project as the Telerik controls can't display in the Compiled Module project. And anytime I put a control on the ascx the designer.vb file doesn't seem to know it exists and so I have to manually declare the same control in the code behind file. But I see now that if I either drop the control on the ascx in the project itself, or if after adding controls in the web site copy of the same file, that the designer file suddenly sees the controls and adds them to the designer.vb file. So it looks like I need to add the controls in the project file, then actually do the coding in the web site copy of the file.
>>

IMHO you are really asking for problems with this workflow approach - and potentially adding a whole layer or wierd referencing issues.

When you edit a file inside the Website - you are still working on the same FILE - but VS2005 is treating it differently - basically the internal code behind flags are different depending on the type of environment you are working in.

For example.

1. if you open a WEBSITE

ascx stores the element declarations (hidden)
ascx.vb has no declarations

2. if you open a web solution - via a .dotnetnuke.snl

ascx stores the file layout
ascx.designer.vb stores the element declarations
ascx.vb has no declarations

3. if you open a standalone soltution yourmodule.snl

ascx stores the file layout
ascx.designer.vb stores the element declarations  (but gets confused with non core elements)
ascx.vb has no declarations

This is even more complicated if try to use 2005 Express - which seems to get the whole lot confused on a regular basis.


 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Visual Studio and the new Compiled Modules templateVisual Studio and the new Compiled Modules template


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