473,624 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Jan 18 '08 #1
2 1705
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.
Jan 18 '08 #2
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" <br*********@di scussions.micro soft.comwrote in message
news:88******** *************** ***********@mic rosoft.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.

Jan 18 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1046
by: TF | last post by:
I am developing a VB.net Windows Application in. I have a class 'A' defined in a class library 'CL_A' and another class 'B' in a different class library 'CL_B'. Class 'B' has a Public Shared member 'm_A' of type 'A'. So it is like, class library CL_A: -------------------- public class A public x as String
1
335
by: TF | last post by:
I am developing a Windows Application in VB.NET that is using two class libraries CL_A (contains class A) & CL_B (contains class B). Also CL_A is used in CL_B. Now in my application when i try to set a variable, declared in CL_B, of type CL_A.A to another variable, declared in application, of same type CL_A.A it gives me following error though both types are same. error BC30311: Value of type 'CL_A.A' cannot be converted to 'CL_A.A'
1
2783
by: rinku24 | last post by:
We have two C++ libraries (Unix Shared objects) with the same class name and no namespace. Is there any way to load both the libraries and selectivly create the instance of the class from different library? e.g. We have class Process in libABC.so and libXYZ.so. Can I instantiate object of class Process from libABC.so or libXYZ.so by specifying symbol name or some other way?? I know can do that for global function using dlsym...
3
2879
by: Florida Coder | last post by:
I have the need to store some application specific configuration data to be used by a class library and or a windows service. I would like to do this in a fashion similar to the way we do with applications and web services without having to use the machine.config file. I know that I could use the code below to do this but the problem then becomes that when using a shared assembly both the assembly and the config file need to be put...
1
258
by: Jim Heavey | last post by:
I have a web application which accesses Class Libraries in another project. Can I add an "App.config" file to my Class Libraries project and be able to use that configuration information from my web application which has a reference to the Class Libraries project? My issue is the connection string to my database. I have been placing it into the web config file and having my web application read it an pass it to the class out of the...
10
3480
by: 4MLA1FN | last post by:
i'm somewhat of a c++ newbie. i'm linking some static libraries into my app. it turns out that two of the libraries (from different suppliers) share a class name; e.g. they both have a class named 'SomeClass'. the compiler/linker is complaining. is there an easy way deal with this so my app can link? thanks.
3
18525
by: Fernando Chilvarguer | last post by:
Hello! I created a Class Library project in VS2005. Then, using VS, I was able to add a connection string to the project settings, which automaticaly created an app.config file for me. If I try to access the configuration using System.Configuration.ConfigurationManager, I get a NullException. The code: string connectionString =
2
4230
by: Mike | last post by:
In the previous version of the .net framework, system.configuration.configuration manager was available for use in Class Libraries. I'm now working with VS2005/framework 2.0 and it appears that this is not an option. Why is this class unavailable now in Class Libraries? I need it to reference a machine.config key on my webserver. Thanks.
4
2893
by: Richard | last post by:
First question - let's get this out of the way since it might be the solution to all my woes: Does it make sense to have a .cpp file for a class that is declared as having pure virtual functions in its .h file? Here's my predicament. I'll put this in general terms since it's happening across several classes. I have a base class, let's say it's named A. In A.h I DECLARE several pure virtual ( = 0) functions, a virtual destructor, and...
3
2216
by: djbaker | last post by:
Greetings, I am trying to create a class library/dll with C++ and I am running into a lot of trouble. I know that this is a C++ forum and not one specific to windows or VS 2005 but I'm hoping someone call help me. I would like to create a class library so that I can put classes that I reuse a lot into their own modules. I played around with it for awhile and had no luck. It was really easy to do in C# but C++ does not seem to be so...
0
8173
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8679
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8621
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.