Hello,
I have medium-sized solution in VB.NET (70 000 lines). The project
compiles ok under VS2005, without any errors, without any warnings. But
when I compile the same solution under MSBuild (from command line),
strange things happenes.

Compiler executed by MsBuild reports unknown types where it should by
known. After whole day of investigation is have found, that imported
namespaces are randomly "lost".

For example, there is clause Imports System.Windows.Forms in the class
file header. But compiler reports DialogResult as unknown type in the
same file. When I change declaration of DialogResult to
System.Windows.Forms.DialogResult, all is compiled Ok. I must to do
these changes 29x in the project.

My question is why? It is _exactly_ the same project, which compiles ok
in VS2005. The compile line for Vbc.exe is exactly the same (compared
from VS2005 build window and MSBuild log file). The build configuration
is the same. Not every type from System.Windows.Forms is unknown. Nor
System.Windows.Forms is the only one lost, there are similar problems
with some of my namespaces.

Can You help me?
--
---------
Environment: VB.NET, VS2005 Pro, XP Pro/P4 3GHz, 2GB RAM
___________________________________________________
Karel Kral, senior developer
ANETE, s.r.o.
___________________________________________________