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
ビギナー
1,348件の閲覧回数

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 件の賞賛
3 返答(返信)
Adrian_F_1
ビギナー
1,348件の閲覧回数

Duh

devenv AllDll.sln /build "Debug|Win32"

devenv AllDll.sln /build "Debug|AnyCPU"

works...

Adrian_F_1
ビギナー
1,348件の閲覧回数

So does:

devenv AllDll.sln /build "Debug"

Steven_L_Intel1
従業員
1,348件の閲覧回数

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.

返信