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

HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...Free Tutorial: Automating Visual Studio 2005 for DNN Module DevelopmentFree Tutorial: Automating Visual Studio 2005 for DNN Module Development
Previous
 
Next
New Post
3/21/2006 11:32 AM
 

Doug,

Any plans to improve the macro to build an initial design ?

I think a macro to add an attribute to the initial design would be a very useful addition because you'd do that very often compared to adding a module :

Input the ModuleName, etc., the Attribute's sql-name/vb-name/sql-type/vb-type/null-or-not/tag name, etc.

Output the new files... then everybody will smile ...

 
New Post
3/21/2006 3:11 PM
 


Yes, I’ve thought of some improvements.  My thought for further work was to leave the initial DNN_Module_Step_001 macro as is.  Then, using the .dnn file to retrieve info, create secondary steps.  This would be advantageous because a developer could automatically add things to their modules, but they would not have had to previously used “DNN_Module_Step_001” in order for them to function.

But I’ve got some more work to do before I come up with anything really useful.

So far I have a macro that allows you to browse to any XML file and display the contents.  I made it available for download if you want to try it out (Click on XML Viewer).  I haven’t tested the download, it should work but you will need to make sure these references are added:

  • System.Data
  • System.Drawing
  • System.Windows.Forms
  • System.XML

You can run it, browse to any .dnn file (i.e. Powerhouse_PHD.dnn) and get some really useful information.  The potential is there to be able to do some pretty cool stuff. 

The macro finds the elements, attributes, and so forth.  And as I mentioned, it can be any XML file, so you can use it on other things besides .dnn files. 

I’ll keep you posted if I add on some other things.

 


    - Doug Vogel     

 
New Post
9/20/2006 5:35 PM
 

Here is how to upgrade your automation to work with the new 4.3.5 version.

  • Follow the instructions here to navigate to your DNNModule folder. Save the contents of this folder somewhere else. You will need this later!
  • Again, following the instructions found here, Extract the new 4.3.5 Module_VB.zip to the destination = your DNNModule folder. Make sure you still follow all the instructions and uncheck the Read-Only, etc.

You still need to do some things.  Having applied the new DotNetNuke 4.3.5 Visual Studio Module Template "Module_VB.zip" to your "DNNModule" folder, you will now receive an error if you try to run it. The error (Displayed in your VS Output Window) will be similar to the following:

> Could not find file 'c:\inetpub\wwwroot\PHDnet3\DesktopModules\Powerhouse_test\Powerhouse_test.SqlDataProvider'.
> No SQL transactions have been run.

The "module.SqlDataProvider" file was not included in the "Module_VB.zip". This needs to be added, so here is how.

  • Find \DesktopModules\ModuleName\module.SqlDataProvider file in your saved files from step 1 above. Copy and paste a copy into your DNNModule folder being careful to place it into the same matching subdirectory.
  • Open the file DNNModule\DotNetNuke Module.vstemplate with NotePad.
    • At end of the vstemplate file before the tag </Folder> Insert:
      <ProjectItem TargetFileName="$fileinputname$.SqlDataProvider" ReplaceParameters="true">Module.SqlDataProvider</ProjectItem>
  • Save the file.

You can now open a new DotNetNuke Web Application Template.

Run DNN_Module_Step_001
Your Default Browser will automatically open your new DotNetNuke Site.
Login in as HOST.

Your new module’s title will be displayed in the add new module dropdownlist.
You can add it to a test page.

Now if you make a modification to your module’s codebehind, you can right-click the module’s .vb file and choose "Build Page".

Click on your Browser and "Refresh".

You will see instantaneous results of your new build. Very, very, fast!!! I am enjoying Visual Studio 2005.


    - Doug Vogel     

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...Free Tutorial: Automating Visual Studio 2005 for DNN Module DevelopmentFree Tutorial: Automating Visual Studio 2005 for DNN Module Development


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