473,396 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1742
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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...

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.