Hello!!
I use VS 2003 and C# for all class library except MeltPracCommon. dll which
is C++.NET
The problem is that I get these warnings when building the exe file and use
my class libraries.
See below for a detail description.
Preparing resources...
Updating references...
Warning: The dependency 'Commons, Version=1.0.227 3.15060, Culture=neutral '
in project 'MeltPracApplic ation' cannot be copied to the run directory
because it would overwrite the reference 'Commons, Version=1.0.227 3.16498,
Culture=neutral '.
Warning: The dependency 'MultiLang, Version=1.0.227 3.15961, Culture=neutral '
in project 'MeltPracApplic ation' cannot be copied to the run directory
because it would overwrite the reference 'MultiLang, Version=1.0.227 3.16656,
Culture=neutral '.
Performing main compilation...
Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
The exe file are using six class library dll. These are:
class library
Comment
1. MeltPracCommon. dll is using
Multilang.dll
2. Commons.dll is not
using any of these dll
3. MeltPracStorage .dll is not
using any of these dll
4. MMICommon.dll is using
Commons
5. Multilang.dll is
using MeltPracStorage .dll
6. UTCASCommon.dll is using
MMICommon.dll and MeltPracStorage .dll
I have only a single project in each solution project. So a have 6 solution
project having one class library project in each one.
So in the referens list for each project I have the following.
UTCASCommon reference MMICommon and MeltPracStorage
MMICommon reference Commons
MeltPracCommon reference Multilang
Multilang reference MeltPracStorage
I use copy local = TRUE for each referece dll that I use.
When I use C++.NET the dll is always copied to the output directory even
when having copy local=false.
There are no problems at all to build all the class library dll
In the UTCASCommon output directory I have the following after a successful
build.
UTCASCommon.dll , MMICommon.dll, Common.dll and MeltPracStorage .dll
In the MMICommon output directory I have the following after a successful
build.
MMICommon.dll and Commons.dll
In the Commons output directory I have the following after a successful
build.
Commons.dll
In the MeltPracCommon output directory I have the following after a
successful build.
MeltPracCommon. dll and Multilang.dll
In the Multilang output directory I have the following after a successful
build.
Multilang.dll and MeltPracStorage .dll
In the MeltPracStorage output directory I have the following after a
successful build.
MeltPracStorage .dll
In the project where the exe file is being built I have referenced the class
library dll where output directory is for the class library project.
For example when I reference the Commons in the reference list I select the
following
C:\PK\Developme nt\Products\UTC AS\4.0\SRC\Comm ons\bin\Commons .dll
It's the same how I reference the other class library dll
So can somebody explain or tell me how to fix my warnings when buiding the
exe file because
I haven't any idea.
//Tony 2 1769
Hello,
Basically You have a refernce to one or more dll that corresponds to version
say version 1.0.0.0.1 in your project. When you build, it tries to copy it
to the bin directory and finds the dll's you copied there that is of
version 1.0.0.0.0
To fix this, do one of the following...
Simply reference the dll's from where they are, Visual studio will
automatically copy them to the bin directory when your build or run your
project.
If you want it referenced from within the bin directory (where you
already have put it) reference it from there (take out the old reference and
add the one from bin)
If you don't want it copied there (want it referenced in some other
location - would force you to deploy to the same location ...) then change
its property "copy Local" to false.
Regards
Scott Blood
C# Developer
"tony" <jo************ *****@telia.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. Hello!!
I use VS 2003 and C# for all class library except MeltPracCommon. dll which is C++.NET
The problem is that I get these warnings when building the exe file and use my class libraries. See below for a detail description.
Preparing resources... Updating references... Warning: The dependency 'Commons, Version=1.0.227 3.15060, Culture=neutral ' in project 'MeltPracApplic ation' cannot be copied to the run directory because it would overwrite the reference 'Commons, Version=1.0.227 3.16498, Culture=neutral '.
Warning: The dependency 'MultiLang, Version=1.0.227 3.15961, Culture=neutral ' in project 'MeltPracApplic ation' cannot be copied to the run directory because it would overwrite the reference 'MultiLang, Version=1.0.227 3.16656, Culture=neutral '. Performing main compilation...
Build complete -- 0 errors, 0 warnings Building satellite assemblies...
The exe file are using six class library dll. These are: class library Comment 1. MeltPracCommon. dll is using Multilang.dll 2. Commons.dll is not using any of these dll 3. MeltPracStorage .dll is not using any of these dll 4. MMICommon.dll is using Commons 5. Multilang.dll is using MeltPracStorage .dll 6. UTCASCommon.dll is using MMICommon.dll and MeltPracStorage .dll
I have only a single project in each solution project. So a have 6 solution project having one class library project in each one.
So in the referens list for each project I have the following. UTCASCommon reference MMICommon and MeltPracStorage MMICommon reference Commons MeltPracCommon reference Multilang Multilang reference MeltPracStorage
I use copy local = TRUE for each referece dll that I use. When I use C++.NET the dll is always copied to the output directory even when having copy local=false. There are no problems at all to build all the class library dll
In the UTCASCommon output directory I have the following after a successful build. UTCASCommon.dll , MMICommon.dll, Common.dll and MeltPracStorage .dll
In the MMICommon output directory I have the following after a successful build. MMICommon.dll and Commons.dll
In the Commons output directory I have the following after a successful build. Commons.dll
In the MeltPracCommon output directory I have the following after a successful build. MeltPracCommon. dll and Multilang.dll
In the Multilang output directory I have the following after a successful build. Multilang.dll and MeltPracStorage .dll
In the MeltPracStorage output directory I have the following after a successful build. MeltPracStorage .dll
In the project where the exe file is being built I have referenced the class library dll where output directory is for the class library project.
For example when I reference the Commons in the reference list I select the following C:\PK\Developme nt\Products\UTC AS\4.0\SRC\Comm ons\bin\Commons .dll It's the same how I reference the other class library dll
So can somebody explain or tell me how to fix my warnings when buiding the exe file because I haven't any idea.
//Tony
Are you referencing the .dll directly? Or are you using project
references? The best method is to have a single solution that includes
all of the projects and then use project references. That way VS will
handle the versioning properly.
Also, in the AssemblyInfo.cs file for each of your projects, you
should explicitly set the version numbers rather than rely on the
automatic version number increment (i. e. dont use 1.0.* as the
version number.)
Your warnings are caused by the version number being automatically
incremented. A newer version of the assembly already exists in the
folder and it is trying to copy an older one over it. Using project
references and explicitly setting the version numbers will alleviate
most if not all of these problems.
See this article, especially chapter 4 "Managing Dependencies" http://msdn.microsoft.com/library/de...ml/tdlg_rm.asp This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: PHPkemon |
last post by:
Hi there,
A few weeks ago I made a post and got an answer which seemed very logical.
Here's part of the post:
PHPkemon wrote:
> I think I've figured out how to do the main things like storing products
in
|
by: Roger Erens |
last post by:
Dear list,
I'm trying to install python2.3.1 on an SCO-box.
After running ./configure --prefix=/usrdir/rogere
the output of make shows (among others:)
running build
running build_ext
building 'struct' extension
creating build
|
by: Kylotan |
last post by:
I have the following code:
def IntToRandFloat(x):
"""Given a 32-bit integer, return a float in """
x = int(x)
x = int(x << 13) ^ x
return (1.0-((x*(x*x*15731+789221)+1376312589)&0x7fffffff)/1073741824.0)
Basically it's a function directly copied from a C implementation. Now
|
by: Cardman |
last post by:
Greetings,
I am trying to solve a problem that has been inflicting my self
created Order Forms for a long time, where the problem is that as I
cannot reproduce this error myself, then it is difficult to know what
is going on.
One of these Order Forms you can see here...
http://www.cardman.co.uk/orderform.php3
|
by: Bonj |
last post by:
Hi
I made a console application called ffind.exe.
When building, the linker gives the warnings below. I presume they are telling me that it is eliminating functions from the .EXE that I have specified but not used, however if so then this is what I WANT it to do. Am I right in presuming this, and if so is there any way I can cause it not to flag them as warnings but on the contrary, ensure that it *does* always do this? (The warnings don't...
| |
by: Kai Thorsrud |
last post by:
Hi,
I'm a selv learned developer and I have a few years of experience with VB6,
ASP, PHP and such.
I've dug into coding with VB.NET and this language simply amazes me. I
really LOVE this language. I've read some Java and i have tried to learn
java but really haven't gotten the time yet so i know a bit OO. ( i tend to
fall back to languages i know i guess ;) but i see that .Net is worth
learning for me )
|
by: Yuri CHUANG |
last post by:
"No newline at the end of your output" is really a problem? I've never
learned that before.
So I desire to know some tips about writting a program perfectly.Can
anyone give me some tips which are hardly learned from textbook or
easily ignored?
Thank you very much.
|
by: tony |
last post by:
Hello!!
I use VS 2003 and C# for all class library except MeltPracCommon.dll which
is C++.NET
The problem is that I get these warnings when building the exe file and use
my class libraries.
See below for a detail description.
Preparing resources...
|
by: pete142 |
last post by:
When I compile this code:
typedef unsigned char BYTE;
BYTE *
IpString(unsigned int ip)
{
static BYTE ipString;
ipString = (BYTE) 0xff & (ip >24);
ipString = (BYTE) 0xff & (ip >16);
|
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...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
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...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |