473,714 Members | 3,470 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to properly update DLL ref?

I have two projects - one is an EXE and the other a DLL. The EXE
references the DLL. I make a change in the DLL and see the version
number change. .20969 for example. In the EXE, I rebuild and see the
DLL reference has the same version. However, when I run the EXE, I
don't see it using new features of the DLL. For example, I may have
added additional information to a string in the DLL. In the EXE, this
new string isn't coming through. Is there something I need to do for
the EXE to be sure it uses the latest and greatest?

Also, I have two VS.NET IDEs open - one for the EXE project and another
for the DLL. When I try to build the DLL, sometimes I get an error
related to not being able to copy to the output folder because it is in
use by another program. I make sure the EXE is not running. Same
error when building the DLL. I close the EXE project. Same error. I
close the EXE VS.NET IDE. Now the error has gone away. Other times, I
can have the EXE running and still be able to build the DLL. One last
thing, I'm copying local on the DLL in the EXE project.

Any ideas?

Thanks,
Brett

Dec 8 '05 #1
5 9813
Brett,

Add both DLL and EXE projects to the same solution. In the EXE reference the
DLL project. Reference it as a Project not the DLL itself.
--
HTH
Stoitcho Goutsev (100) [C# MVP]
"Brett Romero" <ac*****@cygen. com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I have two projects - one is an EXE and the other a DLL. The EXE
references the DLL. I make a change in the DLL and see the version
number change. .20969 for example. In the EXE, I rebuild and see the
DLL reference has the same version. However, when I run the EXE, I
don't see it using new features of the DLL. For example, I may have
added additional information to a string in the DLL. In the EXE, this
new string isn't coming through. Is there something I need to do for
the EXE to be sure it uses the latest and greatest?

Also, I have two VS.NET IDEs open - one for the EXE project and another
for the DLL. When I try to build the DLL, sometimes I get an error
related to not being able to copy to the output folder because it is in
use by another program. I make sure the EXE is not running. Same
error when building the DLL. I close the EXE project. Same error. I
close the EXE VS.NET IDE. Now the error has gone away. Other times, I
can have the EXE running and still be able to build the DLL. One last
thing, I'm copying local on the DLL in the EXE project.

Any ideas?

Thanks,
Brett

Dec 8 '05 #2
Brett,

If you replace the local dll, then it should just use that. Granted,
you won't be able to use new features, but if the general interface is the
same, then whatever results you return from it should be seen.

You aren't storing the dll's somewhere else, are you?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brett Romero" <ac*****@cygen. com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I have two projects - one is an EXE and the other a DLL. The EXE
references the DLL. I make a change in the DLL and see the version
number change. .20969 for example. In the EXE, I rebuild and see the
DLL reference has the same version. However, when I run the EXE, I
don't see it using new features of the DLL. For example, I may have
added additional information to a string in the DLL. In the EXE, this
new string isn't coming through. Is there something I need to do for
the EXE to be sure it uses the latest and greatest?

Also, I have two VS.NET IDEs open - one for the EXE project and another
for the DLL. When I try to build the DLL, sometimes I get an error
related to not being able to copy to the output folder because it is in
use by another program. I make sure the EXE is not running. Same
error when building the DLL. I close the EXE project. Same error. I
close the EXE VS.NET IDE. Now the error has gone away. Other times, I
can have the EXE running and still be able to build the DLL. One last
thing, I'm copying local on the DLL in the EXE project.

Any ideas?

Thanks,
Brett

Dec 8 '05 #3
These are two different things though. This DLL will be used by other
apps and not specific to this one project. How will adding the DLL
into this project change anything besides debugging?

Also, how do I reference another project rather than a DLL?

Thanks,
Brett

Dec 8 '05 #4
Brett,

You can add a project to more than one solution. You may have some problems
if you use Vusial Source Safe though. I don't know if VSS has real problem
with this but it pops up a warning.

To add reference to a project rather than to assembly first both projects
needs to be in the same solution then you do the same steps that you do when
adding reference to a dll, but in the "Add Reference" dialog box you click
on the Projects tab.
There you should have listed all the projects in the solution that can be
added as references.
However it should work even if you reference the dll. VS checks that date of
modification of the referenced assemblies and if the bin folder contains
older dlls it will replace them with the newer versions. Make sure though
that you close all running isntances of the application before you compile
otherwise VS won't be able to copy the dlls and you'll run the application
with the old ones.

The version that VS shows for the referenced dll is from the copy in the
dll's original folder not from the application's bin folder.
--

Stoitcho Goutsev (100) [C# MVP]

"Brett Romero" <ac*****@cygen. com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
These are two different things though. This DLL will be used by other
apps and not specific to this one project. How will adding the DLL
into this project change anything besides debugging?

Also, how do I reference another project rather than a DLL?

Thanks,
Brett

Dec 8 '05 #5
For one project, I'd like to reference the DLL. Whether I use copy
local = true/false, it doesn't update news builds of that DLL. Is
there a way to do this?

Thanks,
Brett

Dec 8 '05 #6

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

Similar topics

5
4098
by: Phil Powell | last post by:
loggout.php doesn't exactly redirect properly, and I have no idea what to do about it... I need to bust out of the frame and go to top, so, how do I do it? Code that I have that fails: <? require_once('/home/nordicnet.no/include/nordicnet_global_vars_functions.php
4
2256
by: dp | last post by:
After looking and looking, it appears that Access ADPs graphic query designer won't display: update customer set = . from customer, where customer. = .; It comes up with the "Query Definitions Differ" dialog box. Anybody know anything about this? I can live this with I guess, however it was sure
1
1814
by: Georges Heinesch | last post by:
Hi. I have a text field (txtTX) and a combobox (cboCB). Both controls are on 2 different subforms (SF1 and SF2) belonging to the main form (MF). MF -+- SF1 --- txtTX +- SF2 --- cboCB txtTX is used to fill cboCB. In other words, SF1 provides the data which fills cboCB.
10
1744
by: Regnab | last post by:
I'm trying to test a recordset to see if the SQL query is returning a Null value. However, the IsNull() test always returns a 'False' response. I even tried: Dim NullCheck As String NullCheck = "" NullCheck = IsNull(NullCheck) When I halted the code half way through, she was still registering "False"..... I figure it's something basic, but its got me beat.
4
4769
by: Joey Powell | last post by:
Hello all. For a long time now I have been struggling with a .net Windows Forms problem. In several of my applications, I use the "Process" class from System.Diagnostics to accomplish various task from within my code (kind of like the old VB shell function). Using this process class appears to be just one example of what causes my Windows forms to look really crazy when running the application. In fact this has become not only a cosmetic...
1
4327
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls (watch the layout, some have child controls):
1
1453
by: Waldo Nell | last post by:
Hi, I have a *huge* problem. I have a table with indexes on but the moment I have an OR in my SELECT query it seems to not use the appropriate index. oasis=> \d purchases Table "public.purchases" Column | Type | Modifiers
2
2539
by: Michael D. Reed | last post by:
I am using ClickOnce to distribute a program. It works well except for one detail. When a new version is installed, the program does not initialize properly immediately after the update. The sequence is the user starts the program, is informed a new version is ready, installs it, when it is complete and the main form is displayed, the user needs close the form, and restarts the program to the form to initialize properly. The problem is...
17
5258
by: geniajanssen | last post by:
Hi there: I cannot get the code below to work properly. It works fine on the first loop but the next times around "$querySQL = 'SELECT * FROM host_index'" returns the wrong value. Can somebody help me out? <?php require_once('connections/radiolightstream.php'); mysql_select_db($database_radiolightstream, $radiolightstream);
4
17572
by: narenshines | last post by:
Hi I am trying to update my table using this.. update tablename set sqlquery = 'select max(upd_rows) from tablename where data_center='***' and tab_abbrev='***'' where userid='12345'; But am getting this error ORA-00933:SQL command not properly ended I dunno how to fix it.can anyone please help me out???
0
8814
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9187
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
9079
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
9032
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
5961
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4467
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
4730
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3160
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
2528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.