I have a visual studio c test project (Helloworld project) created from VS 2008 professional edition and it contains VC++ project file.
May I know how can I build the same project from commandline(cmd) so that I wont need to take the VS GUI for building the same.
I am pretty comfused that it may need some make file to be created but I cannot see any option to create the ame in the visual studio said edition.
any suggestions or helps are much appreciated.
You can drive the solution or project build using vcbuild or devenv. An example of the latter:
devenv Solution.sln /build /project Project.vcproj /projectconfig "Debug|Win32"
(You can run vcbuild /? and devenv /? to find their commonly used options.)
Note that in Visual Studio 2010 and later, Visual C++ projects use MSBuild, so projects can be built on the command line using msbuild, just like any other MSBuild projects (C#, VB, etc.). The older VCBuild, used in previous versions of Visual Studio, is no longer supported.
This is typically done via nmake. VS60 allowed to export a makefile and use it with nmake(Microsoft's make utility) . (After than we started writing our own makefile).
http://msdn.microsoft.com/en-us/library/aa233950(v=vs.60).aspx
hopefully newer Visual Studio will have similar or better options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With