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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...How do I create a class LibraryHow do I create a class Library
Previous
 
Next
New Post
7/6/2010 5:03 PM
 
Hi

I am attempting to create a class Library using VB that I can use in multiple modules through out a DNN based application.
In studio 2005 I selected File - New - Project and then Class Library
I entered the name and location  set the compile location to the Bin directory and started to add my generic routines.

The problem (So Far) is I am trying to access some XML functionality and I get errors that say Name 'XmlNodeType' is not declared. and so forth. So I assumed I needed to add the references to the project which I did on the References tab of the project properties. This did not get rid of the errors so then I ended up selecting all the references used in the other modules which is probably more then I need but I am still getting the errors. I also checked all the same entries under the "Imported Namespaces" portion on that tab. Still no good.
I then tried entering a couple import statements on the top of my class code  to "system" and "DotNetNuke"

So I am hacking away at this, searching forums and google and not getting anywhere but frustration.

Is there some generic routines that I should be adhering to? 
Is there some information or tutorials that can help me out with setting this library up?
Is there something specific I need to do in order to use libraries such as the XML Library that I am oblivious to?

Any help appreciated
Thanks





 
New Post
7/6/2010 5:42 PM
 
Did you try using the Object Browser to find the parent object and appropriate object to reference in your project?  I think the namespace you need to reference is the System.XML one.  Importing that assembly in your project should do the trick.

As far as having a DNN-friendly class environment, I would suggest that you check out the source of the core modules and use the method that best suits you.  There are a handful of ways to set up your project (in this context).

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
7/7/2010 7:57 AM
 
Thanks Will,
 I actually did use the browser and that was the namespace that Was being used but when adding it to the project the errors did not go away. I must have done something else wrong too although it looks the same as the other project. That is why I was wondering if I needed some entries that inherit or declare the required DLL.

Is there a particular module that is a good example without being too complex that you might recommend or just have at it?

THanks
 
New Post
7/7/2010 10:54 AM
 
Without knowing you and your skill set, I cannot say that one module would be better to learn over others.  But your most complicated (and thorough) examples would be the blog and forums modules.

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
7/4/2012 7:34 AM
 
sir,
As i am beginner so can you tell me how to create library??what is dll file???what i have to install in my laptop to create the class library???From where i intilize myself to get started of all this think.
Rply me as soon as possible...

---
Ashish jain
(ashish.jain2527@gmail.com)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...How do I create a class LibraryHow do I create a class Library


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