473,441 Members | 1,864 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,441 software developers and data experts.

Reference DLL or project?

Jon
I'm wondering what people recommend. I used to have all my programs
reference another project that held general functions and classes I knew I
would want to reuse. Lately, I've switched to just referencing the dll that
comes from that project. However, when I do this, I often get the message
"No source code found at the current location" when debugging...it doesn't
always happen, but sometimes. So, I've been thinking of moving back to
referencing the actual project in the solution.

What do you do and why?
Nov 23 '05 #1
4 3109
I typically only have one project per solution. So I reference the DLL, and
I've never had the issue you are describing.

"Jon" <ru******@msn.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
I'm wondering what people recommend. I used to have all my programs
reference another project that held general functions and classes I knew I
would want to reuse. Lately, I've switched to just referencing the dll
that comes from that project. However, when I do this, I often get the
message "No source code found at the current location" when debugging...it
doesn't always happen, but sometimes. So, I've been thinking of moving
back to referencing the actual project in the solution.

What do you do and why?

Nov 23 '05 #2
I seem to get erratic results when referencing my .dll's unless I make the
assembly version the same (replace the * with a number in the Assembly.vb
version attribute). When the .dll is changed, the version number also
changes unless it's fixed and I think this confuses the compiler.
--
Dennis in Houston
"Jon" wrote:
I'm wondering what people recommend. I used to have all my programs
reference another project that held general functions and classes I knew I
would want to reuse. Lately, I've switched to just referencing the dll that
comes from that project. However, when I do this, I often get the message
"No source code found at the current location" when debugging...it doesn't
always happen, but sometimes. So, I've been thinking of moving back to
referencing the actual project in the solution.

What do you do and why?

Nov 23 '05 #3
To debug the dll you need the .pdb file. If the .pdb file does not exist, or
it is out of synch, etc. you can get that error. In general, it is better to
use Project references.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Jon" <ru******@msn.com> escribió en el mensaje
news:Ot**************@tk2msftngp13.phx.gbl...
I'm wondering what people recommend. I used to have all my programs
reference another project that held general functions and classes I knew I
would want to reuse. Lately, I've switched to just referencing the dll
that comes from that project. However, when I do this, I often get the
message "No source code found at the current location" when debugging...it
doesn't always happen, but sometimes. So, I've been thinking of moving
back to referencing the actual project in the solution.

What do you do and why?

Nov 23 '05 #4
Hi Jon

In addition to other answers, Microsoft recommend referencing the project
when it is part of your solution. There are known issues when referencing
the DLL (at least up to V2003) that can cause the compiler to get confused,
and report erroneous errors.

HTH

Charles
"Jon" <ru******@msn.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
I'm wondering what people recommend. I used to have all my programs
reference another project that held general functions and classes I knew I
would want to reuse. Lately, I've switched to just referencing the dll
that comes from that project. However, when I do this, I often get the
message "No source code found at the current location" when debugging...it
doesn't always happen, but sometimes. So, I've been thinking of moving
back to referencing the actual project in the solution.

What do you do and why?

Nov 23 '05 #5

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

Similar topics

0
by: serge calderara | last post by:
Dear all, I have a really strange beaviour in my application. First of all I have a single plugin interface named IPlugIn which as been build in a separate project library named PLugin.dll...
0
by: public heath vb developer | last post by:
We have a solution with 29 projects including a main menu and 28 dlls. One of the projects (Project B) was created by copying an existing project (Project A), making changes including the assembly...
2
by: Steve Harclerode | last post by:
Hi all, I've been doing web service development for a year, with a break for the last few months. What I remember is how easy it is to reference a web service using Visual Studio. So today, I...
3
by: Hitesh Khatri | last post by:
Hi All, I have web application project, to which I have added project-reference to another class library. When I am using one of the property from that class. I am getting following error. ...
4
by: John Lafrowda | last post by:
Hi all, I'm trying to handle two projects in one solution (.net 2002, both projects are VB). The first project contains only some public constant definitions (for the moment) and compiles into...
5
by: Derek Martin | last post by:
I am creating a windows service and have added a reference to a DLL project that I have created. That DLL file is correctly referenced in both a windows app and a web app, all in the same...
11
by: Just Me | last post by:
I have a solution containing many usercontrol projects. When I wish to reference a usercontrol in another project I can select either the project or the assembly. Does it make a difference which...
9
by: MSDNAndi | last post by:
Hi, I have the following problem with VS 2005 (Professional) and C# 2.0 I will use assembly and namespace synonymously here. I have a class in namespace InheritClass inherit from a baseclass...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
2
by: AMDRIT | last post by:
Hello Everyone, I am having an issue with my solution and hoping that you all can suggest a resolution. I have a common library that (A) that three other projects make reference of (B,C,D). ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
1
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...
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...

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.