Class Libraries

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fresno Bob

    #1

    Class Libraries

    I am used to putting my business logic layer etc in the App_code folder in a
    website project. I want to use class libraries so I can use Sandcastle and
    NUnit. However unlike a website project I do not get immediate Intellisense.
    I have to

    Add the project to the website solution (File>Add>Exist ing Project)
    Add a reference to the class library
    Build the solution
    Use the class library in website

    If I want to change the class library
    Change the class code
    Build the solution
    Use in website

    Is this the correct way of using a class library as it is more complicated
    than the Website project and I want to know if I am missing anything.


  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Class Libraries

    just be sure its a project reference, not a ref to the dll. then if you
    change any code in the proj and hit run, it will get recompiled.

    i use websites, project files and nunit/msunit with no problems.


    -- bruce (sqlwork.com)


    "Fresno Bob" wrote:
    I am used to putting my business logic layer etc in the App_code folder in a
    website project. I want to use class libraries so I can use Sandcastle and
    NUnit. However unlike a website project I do not get immediate Intellisense.
    I have to
    >
    Add the project to the website solution (File>Add>Exist ing Project)
    Add a reference to the class library
    Build the solution
    Use the class library in website
    >
    If I want to change the class library
    Change the class code
    Build the solution
    Use in website
    >
    Is this the correct way of using a class library as it is more complicated
    than the Website project and I want to know if I am missing anything.
    >
    >
    >

    Comment

    • Fresno Bob

      #3
      Re: Class Libraries

      No I did a link to the dll. I have now changed it to the project. Does this
      still mean when I make changes to the class library I have to recompile
      before I can use intellisense etc in the website project.

      "bruce barker" <brucebarker@di scussions.micro soft.comwrote in message
      news:88581E9B-383F-47BD-8874-495178DFDBF2@mi crosoft.com...
      just be sure its a project reference, not a ref to the dll. then if you
      change any code in the proj and hit run, it will get recompiled.
      >
      i use websites, project files and nunit/msunit with no problems.
      >
      >
      -- bruce (sqlwork.com)
      >
      >
      "Fresno Bob" wrote:
      >
      >I am used to putting my business logic layer etc in the App_code folder
      >in a
      >website project. I want to use class libraries so I can use Sandcastle
      >and
      >NUnit. However unlike a website project I do not get immediate
      >Intellisense .
      >I have to
      >>
      >Add the project to the website solution (File>Add>Exist ing Project)
      >Add a reference to the class library
      >Build the solution
      >Use the class library in website
      >>
      >If I want to change the class library
      >Change the class code
      >Build the solution
      >Use in website
      >>
      >Is this the correct way of using a class library as it is more
      >complicated
      >than the Website project and I want to know if I am missing anything.
      >>
      >>
      >>

      Comment

      Working...