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

Build order issues?

Hi there,

I have a solution which consists of 2 class libraries and 2 executables
which both consume these class libraries. I've set the correct dependencies
in order for the VS to automatically set the build order but I am still
getting issues.

On the first build every project builds in order and I recieve two error
messages briefly at the end of the build which then vanish, the error
messages are basically telling me that a value of type "foobar" cannot be
converted to type "foobar", go figure?

The second build I recieve the same two error messages which vanish, but
then I get another saying that one of my class library dll is in use
elsewhere.

The third build completely breaks everything as the projects consuming
the dll that is in use fail to resolve their dependencies.

Any ideas what is going wrong here?? I'm using VS.NET 2003, all of the
projects in question are VB.NET.

Cheers in advance!

--
Nick Pateman

---------------------------------------------------------------
Any views expressed above are my own
Without predjudice
Nov 21 '05 #1
4 1493
Hi again,

My problem appears to be a little deeper than first expected,

[classlibrary A] --> [classlibrary B] --> [application A]
[classlibrary A] --> [classlibrary B] --> [application B]

When compiling application B, I am being told that it cannot type cast
an object for a parameter within a method within classlibrary B. The type
of the object it cannot type case is declared in classlibrary A.

Value of type 'classlibraryA.foobar' cannot be converted to
'classlibraryA.foobar'.
^This error is pointing to an object in classlibrary B.

All I can presume is that the IDE has created 2 different versions of
classlibrary A in order for it to think that the objects are of a different
type. Although this doesn't really make sense because if I examine the
references they check out to all have the correct versions.

Any ideas what's happening? Thanks loads in advance!!!

Nick.

"Nick" <no****@altavente.com> wrote in message
news:e1**************@TK2MSFTNGP15.phx.gbl...
Hi there,

I have a solution which consists of 2 class libraries and 2 executables
which both consume these class libraries. I've set the correct
dependencies in order for the VS to automatically set the build order but
I am still getting issues.

On the first build every project builds in order and I recieve two
error messages briefly at the end of the build which then vanish, the
error messages are basically telling me that a value of type "foobar"
cannot be converted to type "foobar", go figure?

The second build I recieve the same two error messages which vanish,
but then I get another saying that one of my class library dll is in use
elsewhere.

The third build completely breaks everything as the projects consuming
the dll that is in use fail to resolve their dependencies.

Any ideas what is going wrong here?? I'm using VS.NET 2003, all of the
projects in question are VB.NET.

Cheers in advance!

--
Nick Pateman

---------------------------------------------------------------
Any views expressed above are my own
Without predjudice

Nov 21 '05 #2
Where is the code for the foobar class? You don't have multiple copies
of that code in your projects do you? Also are your references project
references or are you directly referencing the .dll files? Project
references are preferred. It sounds as if you have multiple copies of
the ClassLibraryA. Also, make sure you don't have any circular
references.

Chris

Nov 21 '05 #3
Hi there,
Where is the code for the foobar class? You don't have multiple copies
of that code in your projects do you? Also are your references project
references or are you directly referencing the .dll files? Project
references are preferred. It sounds as if you have multiple copies of
the ClassLibraryA. Also, make sure you don't have any circular
references.


This is getting more complex to explain by the moment. It seems to be
when I'm cross referencing (if that's the correct term), for example,

* foobar defined in "class library A"
* "class library B" defines an object "foofoo" which consumes "foobar"
* "application B" defines an object "barfoo" which consumes "foobar".
* When "barfoo"'s "foobar" property is set by a reference to from an
instance of "foofoo" all goes pear shaped.

Confusing?

I don't think I have any circular references, and certainly only one
definition of "foobar".

Nick.
Nov 21 '05 #4
Right I've fixed it!

I moved the reference of "foobar" from "class library B", and it fixed the
issue!

Nick.

"Nick" <no****@altavente.com> wrote in message
news:On**************@TK2MSFTNGP14.phx.gbl...
Hi there,
Where is the code for the foobar class? You don't have multiple copies
of that code in your projects do you? Also are your references project
references or are you directly referencing the .dll files? Project
references are preferred. It sounds as if you have multiple copies of
the ClassLibraryA. Also, make sure you don't have any circular
references.


This is getting more complex to explain by the moment. It seems to be
when I'm cross referencing (if that's the correct term), for example,

* foobar defined in "class library A"
* "class library B" defines an object "foofoo" which consumes
"foobar"
* "application B" defines an object "barfoo" which consumes
"foobar".
* When "barfoo"'s "foobar" property is set by a reference to from an
instance of "foofoo" all goes pear shaped.

Confusing?

I don't think I have any circular references, and certainly only one
definition of "foobar".

Nick.

Nov 21 '05 #5

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

Similar topics

5
by: cameron | last post by:
Is it possible to get the build date, (not the version), of a dll? -Cam
2
by: Rudy Ray Moore | last post by:
How can I modify the project build order of a multi-project workspace under "Visual Studio .net 2003 7.1 c++"? I tried to modify the .sln by hand to influence the build order, but it didn't seem...
9
by: Brett Romero | last post by:
I have an EXE project with four project dependencies (DLLs). I need to set the order of these builds. However they are automatically ordered by alpha. There aren't any settings to change this. ...
1
by: Dan Munk | last post by:
Hello, I have a large project exclusively made up of interfaces (several hundred) that define the business objects used in our system. Heavy inheritance and aggregation are used in the project....
5
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class...
4
by: Jason Richmeier | last post by:
I keep encountering an error message while trying to build a solution that I cannot seem to get around. I cannot figure out what the error is trying to tell me as there does not appear to be much...
2
by: Nick | last post by:
So, this link: http://msdn2.microsoft.com/en-us/library/54dwfbb7.aspx says, "The build order is inferred from the top-down order of the codeSubDirectories collection. The App_Code directory is...
2
by: iKiLL | last post by:
Hi All, As the subject suggests. I am attempting to build a C# application from with in VS2005 that can have add ons built for it to give it additional functionality. It will be a...
1
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
I have an asp.net solution with a web deployment project. When we try to build/debug, we get the message: An editor or project is attempting to check out a file that is modified in memory,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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...

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.