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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
|