Just to share some extra weirdness...
I tried running msbuild on the build server against the project file
expecting to get a clean compile the same as I do through VS 2005. Wrong!
It gave me the same error I described below. Why in the world would the
MSBuild results be different than the results I get through the IDE? Doesn't
the IDE just call MSBuild?
Can someone at least confirm for me that I am not crazy and that the code
situation I described *should* compile?
> Just to share some extra weirdness...
>
[quoted text clipped - 3 lines]
> MSBuild results be different than the results I get through the IDE? Doesn't
> the IDE just call MSBuild?
I don't have any specific knowledge regarding that question, but given
the behavior I'd say perhaps it doesn't.
Alternatively, maybe there are some compiler switches that are
different. That's the first thing I'd look at.
> Can someone at least confirm for me that I am not crazy and that the code
> situation I described *should* compile?
I'm not sure anyone can do that until you actually post a
complete-but-concise sample of code that reliably reproduces the problem.
Pete
Brett - 30 Jul 2007 19:12 GMT
Comments below:
> > Just to share some extra weirdness...
> >
[quoted text clipped - 9 lines]
> Alternatively, maybe there are some compiler switches that are
> different. That's the first thing I'd look at.
It was the first thing I looked at too, that is why I copied the vbc call
and all parameters from the output window of VS 2005 and pasted it into a
command prompt window. Either VS 2005 isn't showing me all of the parameters
it is setting or something else is causing the difference. Either way if
someone can tell me how to figure out how to run the vb compiler exactly the
same way VS 2005 is I'd be mighty grateful.
> > Can someone at least confirm for me that I am not crazy and that the code
> > situation I described *should* compile?
>
> I'm not sure anyone can do that until you actually post a
> complete-but-concise sample of code that reliably reproduces the problem.
I'm afraid to spend too much time paring the code down to a useable sample
because I'm not sure if anyone will be able to reproduce the problem. Right
now I can only recreate the problem on one box, it just happens to be our
build server. But maybe if I can reproduce it on the build server someone
else will be able to reproduce it too; I'll see what I can put together
quickly.
'Matrix.TypeX' inherits from ?
It could be quite easy to forget that your collection inherits from its
parent but it doesn't mean that the type you are using to store your
elements inherits from the type you used for elements when inheriting from
your base collection - hopefully you'll better understand than me what I'm
trying to say ;-)
---
Patrice
> Just to share some extra weirdness...
>
[quoted text clipped - 7 lines]
> Can someone at least confirm for me that I am not crazy and that the code
> situation I described *should* compile?
Brett - 30 Jul 2007 19:16 GMT
Thanks for the suggestion Patrice but the generic type parameters for the
collection I'm inheriting from and the type of the members I am putting into
the collection match.
I even tried swithching it to declare the type specific collection as a
generic collection with a constraint for the specific type I want to hold and
then passing the type parameter through to the class I'm inheriting from and
I still got the same compile error in the same situations.
> 'Matrix.TypeX' inherits from ?
>
[quoted text clipped - 18 lines]
> > Can someone at least confirm for me that I am not crazy and that the code
> > situation I described *should* compile?