473,574 Members | 18,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Release Compling & References

I have a ADO.Net Library project (adonet.dll) in my VS solution

Recently, when I Debug comple I don't get any errrors. When I Release
compile to my local share network drive the compiler says it can't find the
library project namespace (I build he library first)

When I add the project reference, where do I add it from?
What's the correct path should my library be set to?
or why the error?

Steve
Jan 19 '06 #1
2 1265
Steve,

You should add a project reference from a location where the same dll
will be in the search path of your application. In other words, it doesn't
matter where you set the reference to, as long as that same DLL is copied
along with your application to where it will excecute from.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Steve B." <St****@discuss ions.microsoft. com> wrote in message
news:E7******** *************** ***********@mic rosoft.com...
I have a ADO.Net Library project (adonet.dll) in my VS solution

Recently, when I Debug comple I don't get any errrors. When I Release
compile to my local share network drive the compiler says it can't find
the
library project namespace (I build he library first)

When I add the project reference, where do I add it from?
What's the correct path should my library be set to?
or why the error?

Steve

Jan 19 '06 #2
Thank You Nicholas. Yes it did help

Steve

"Nicholas Paldino [.NET/C# MVP]" wrote:
Steve,

You should add a project reference from a location where the same dll
will be in the search path of your application. In other words, it doesn't
matter where you set the reference to, as long as that same DLL is copied
along with your application to where it will excecute from.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Steve B." <St****@discuss ions.microsoft. com> wrote in message
news:E7******** *************** ***********@mic rosoft.com...
I have a ADO.Net Library project (adonet.dll) in my VS solution

Recently, when I Debug comple I don't get any errrors. When I Release
compile to my local share network drive the compiler says it can't find
the
library project namespace (I build he library first)

When I add the project reference, where do I add it from?
What's the correct path should my library be set to?
or why the error?

Steve


Jan 21 '06 #3

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

Similar topics

6
1740
by: Ariel | last post by:
I have an application that works correctly in debug mode but it does not work in release. I am not using anything of the class system.diagnostics. I tried to disable the optimization code, but this did not work please I need a solution quickly!!. Thanks.
11
4039
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it again, Excel hangs. OR if I open Excel again (say from a desktop icon) before I close Access, Excel hangs. (this has happened for both 97 & 2000...
3
1491
by: Ed Sutton | last post by:
My solution contains multiple C# and C++ components as well as a deployment project. In my top-level C# WinForms application, I added references to some components by browsing to the \bin\debug\*.dll of the desired component. How can I make it use a debug build of a component for a debug build, and a release build of a component for a...
5
3104
by: nobody | last post by:
With Visual C++ 2005 beta 2, I get the below compling error for the following code. I think this error is not acceptable to me because int::typeid is a constant and is known to compiler when compiling. Will VC++ 2005 implement switch with case int::typeid in the final release? error C2450: switch expression of type 'System::Type ^' is...
1
1041
by: zambizzi | last post by:
I've got an asp.net app which has a whole series of class libraries (assemblies)...all of which is currently in debug mode. When I push all this to production, what is the easiest way to go from debug to release? Currently I have to re-create all of my references in vs.net and that's tedious, not to mention error-prone and frustrating. I...
6
9129
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the...
10
8142
by: Hendri Adriaens | last post by:
Hi, I'm trying to automate the creation of an excel file via COM. I copied my code below. I read many articles about how to release the COM objects that I create. The code below runs just fine and excel is closed. But there are some commented lines: //xlSeries.XValues = xlWs.get_Range("B2", "B4"); // makes com objects, but which...
6
2369
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi there We are trying to build a C sharp solution in Visual Studio 2005 Professional. We have a number of other assemblies, that do not form part of the solution. Assemblies that do form part of the solution have been referenced using the Projects tab in the Add Reference dialog. Assemblies that do not form part of the solution have...
1
1419
by: Jeff Dege | last post by:
When I am building a project in Visual Studio 2005, I can create references to assemblies that were built by other projects. The problem is that I don't see how to create a reference that switches between the debug and release builds of the other project, when I switch between the debug and release configurations of my parent project. That...
0
7817
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...
0
8081
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. ...
0
6482
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5322
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...
0
3759
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...
0
3771
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2254
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
1
1359
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.