Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Build from command line

Adrian_F_1
Beginner
520 Views

I have a solution which consists of many projects: vfproj, vcxproj and 1 csproj (C#).  The vfproj and vcxproj have the config Debug|Win32, so I build from the command line with:

devenv AllDll.sln /build "Debug|Win32"

This builds all the vfproj and vcxproj projects.  However the csproj doesn't have this config, instead it has Debug|AnyCPU and so the csproj project doesn't build.  All projects build fine from Visual Studio if I do a Clean, Build.

Any idea how get them all to build from the command line?

0 Kudos
3 Replies
Adrian_F_1
Beginner
520 Views

Duh

devenv AllDll.sln /build "Debug|Win32"

devenv AllDll.sln /build "Debug|AnyCPU"

works...

0 Kudos
Adrian_F_1
Beginner
520 Views

So does:

devenv AllDll.sln /build "Debug"

0 Kudos
Steven_L_Intel1
Employee
520 Views

I will comment that using AnyCPU in conjunction with a native DLL will get you into trouble if you run on a 64-bit system - at least that's what I have found. I find I need to specify WIn32 or x64 explicitly as the target CPU for the managed code application if it calls a native DLL.

0 Kudos
Reply