473,467 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Class Library

I am playing around with class libraries trying to understand how they work.

I created a class library, library.vb.
I placed the library.dll into the bin directory and set my reference.

If I update the library.dll can I Just place the new .dll in the bin
directory or do I need to recompile my program.

During testing I am just placing the new library.dll in the bin directory
and don't get any of the updates I made until I re-reference the
library.dll. This is all taking place in designer. From my reading I
thought you should only have to place the new .dll in the root bin
directory.

Thanks for any input.
Nov 18 '05 #1
4 1744
You only need to place the new .dll into the bin directory of the
application that uses it, but a better way to do it is to just hit the
refresh button of the Solution Explorer window in the application that uses
library.dll.

This will go get a new copy of library.dll for you.
"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:e6**************@TK2MSFTNGP09.phx.gbl...
I am playing around with class libraries trying to understand how they work.
I created a class library, library.vb.
I placed the library.dll into the bin directory and set my reference.

If I update the library.dll can I Just place the new .dll in the bin
directory or do I need to recompile my program.

During testing I am just placing the new library.dll in the bin directory
and don't get any of the updates I made until I re-reference the
library.dll. This is all taking place in designer. From my reading I
thought you should only have to place the new .dll in the root bin
directory.

Thanks for any input.

Nov 18 '05 #2
Assuming that you're using Visual Studio.Net: If you put the Class Library
Project into the same Solution as the project using it, and create a
reference to the PROJECT (not the DLL), it will automatically update.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:e6**************@TK2MSFTNGP09.phx.gbl...
I am playing around with class libraries trying to understand how they work.
I created a class library, library.vb.
I placed the library.dll into the bin directory and set my reference.

If I update the library.dll can I Just place the new .dll in the bin
directory or do I need to recompile my program.

During testing I am just placing the new library.dll in the bin directory
and don't get any of the updates I made until I re-reference the
library.dll. This is all taking place in designer. From my reading I
thought you should only have to place the new .dll in the root bin
directory.

Thanks for any input.

Nov 18 '05 #3
For now I will only be using the Class Library in one project. But in the
future when I get more expiereance I can see the one .dll being used over
multiple projects. Would I still want to put the Class Library in the same
solution as my project?

Thanks
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
Assuming that you're using Visual Studio.Net: If you put the Class Library
Project into the same Solution as the project using it, and create a
reference to the PROJECT (not the DLL), it will automatically update.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:e6**************@TK2MSFTNGP09.phx.gbl...
I am playing around with class libraries trying to understand how they

work.

I created a class library, library.vb.
I placed the library.dll into the bin directory and set my reference.

If I update the library.dll can I Just place the new .dll in the bin
directory or do I need to recompile my program.

During testing I am just placing the new library.dll in the bin directory and don't get any of the updates I made until I re-reference the
library.dll. This is all taking place in designer. From my reading I
thought you should only have to place the new .dll in the root bin
directory.

Thanks for any input.


Nov 18 '05 #4
A Solution can contain multiple projects. Projects can be shared among more
than one Solution. You can use the same Project in multiple Solutions. The
Class Library is a project. Its output is a DLL. When you use the Class
Library Project in a Solution, and reference the Project, the DLL is
compiled and used with the Solution when you compile. It works the same no
matter how many Solutions you put it into.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
For now I will only be using the Class Library in one project. But in the
future when I get more expiereance I can see the one .dll being used over
multiple projects. Would I still want to put the Class Library in the same solution as my project?

Thanks
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
Assuming that you're using Visual Studio.Net: If you put the Class Library
Project into the same Solution as the project using it, and create a
reference to the PROJECT (not the DLL), it will automatically update.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:e6**************@TK2MSFTNGP09.phx.gbl...
I am playing around with class libraries trying to understand how they

work.

I created a class library, library.vb.
I placed the library.dll into the bin directory and set my reference.

If I update the library.dll can I Just place the new .dll in the bin
directory or do I need to recompile my program.

During testing I am just placing the new library.dll in the bin

directory and don't get any of the updates I made until I re-reference the
library.dll. This is all taking place in designer. From my reading I
thought you should only have to place the new .dll in the root bin
directory.

Thanks for any input.



Nov 18 '05 #5

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

Similar topics

20
by: syd | last post by:
In my project, I've got dozens of similar classes with hundreds of description variables in each. In my illustrative example below, I have a Library class that contains a list of Nation classes. ...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
3
by: eBob.com | last post by:
I have several applications which mine web sites for personal information which they publish. They publish the info in one form, I transform the info into Excel spreadsheets. So all these...
5
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
5
by: Rainer Queck | last post by:
Hello NG, Is it possible to share the settings of an application with a class libreary? In my case I have a application and a set of different reports (home made) put into a class library. The...
0
by: drawing in aspnet | last post by:
Question about putting the data layer in a separate class library. I keep reading that the data layer should be separated from the presentation layer and put in its own class library. I am...
4
by: Steve Baer | last post by:
I've already tested this with C# and it works, but I'm being paranoid and I wanted to also check here. Our application has a large class library written in C++/CLI for plug-in projects. The...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.