Thanks for replying.
No it's not the case. The user control is embedded in the project ( a class
library) and another project in the solution (an exe) is consuming it. Both
were last succesfully compiled by the commandline compiler. When I got the
problem in the IDE, I could still run the exe accessing the dll and the user
control was still intact. So it's definitely not the case. It is as if the
reference in the project is not pointing anymore to binary .
Roland
> Is the 'bin' directory shared by different projects?
>
[quoted text clipped - 19 lines]
> > is there a way to avoid it or correct it? Thanks in advance.
> > Roland
adam.corbett@gmail.com - 28 Apr 2005 05:31 GMT
This always happens to me as well. In my experience it happens when
you switch to/from Debug/Release mode. As a work around, I suggest you
go into configuration manager and set all control projects to compile
to debug when the project is in Release mode. You might do the
reverse, setting all control projects to always compile to Release
mode. As long as all control projects always compile to the same
configuration for all project configurations. When it comes time to
release, then go ahead and set things back to normal before your final
compile. I do not know if taking similar precautions with the command
line compiler will yield the same results.
The quick fix is simply to close the designer and file of the form you
are editing (with out saving), remove the control project from the
references, and then re-add the project as a reference. Then compile
once and reopen the form designer.
> Thanks for replying.
> No it's not the case. The user control is embedded in the project ( a class
[quoted text clipped - 32 lines]
> > > is there a way to avoid it or correct it? Thanks in advance.
> > > Roland