Build mixed c++ and C# project from command line.

Hi,

I have a mixed c++ and C# project
When i build it from VS 2003 it build ok.
But if t try to build it from commad line with a command :
"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe" /rebuild debug k:/Pc/BillpopBuild/BillpopBuild.sln /out ./aa.txt


All the c++ projects build ok, but the C# and MC++ failed.
I get msg :
error C2871: 'MachineFilesStructure' : a namespace with this name does not exist

the Project 'MachineFilesStructure' build ok, but the C# that have a ref to that project dose not find it

It look like that it dose not copy the file in the rebuild process.
I put CopyLocal = true
at reference properties.

If i will build once with the IDE the project and run again from command line
the same line, it will build ok.

Any one know how to solve that problem ?

Thanks
Avi.

[975 byte] By [avic] at [2008-2-15]
# 1
Avi - sorry for the delay. For something like this, the best thing is to log a bug online (in betaplace, or ladybug, or whatever it's called right now).

Please attach to the bug instructions for getting this error from scratch, or a simplified version of your solution that has the minimum necessary to reproduce it.

That way it's sure it will get properly investigated.

Thanks
Dan

DanMoseley at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 2
Hi Dan,

Thanks for the reply.
I opened a Microsoft service req. and fixed the problem.
It is a Microsoft bug,
In case that one MC++ DLL use another MC++ DLL you need in "additional Option"
field to add a line like :
/FU "k:\Pc\MachineFilesStructure\bin\debug\MachineFilesStructure.dll"

This line exist at the "All option" command line, but when build from command line
the compiler ignore it ?

I hope that Microsoft will fixed that bug in VS 2005

thanks again
Avi Cohen
ScitexVision

avic at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 3

Avi,

Glad to hear you got it resolved. It sounds like this is already tracked by a bug, so we're set.

Dan

DanMoseley at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...

Visual Studio

Site Classified