开发者

How to compile C++ Projects from Command Line

开发者 https://www.devze.com 2023-01-16 00:41 出处:网络
I have to compile a 开发者_运维技巧Visual C++ solution from command line. I can\'t do it with devenv.exe but can install .Net Framework SDK. Can I use the solution and project files to compile from th

I have to compile a 开发者_运维技巧Visual C++ solution from command line. I can't do it with devenv.exe but can install .Net Framework SDK. Can I use the solution and project files to compile from the command line? If so how?


If the .net framework SDK comes with msbuild, then just invoke:

msbuild mysolution.sln

That will cause a msbuild project to be generated from the solution, and the msbuild project will in turn instigate a call-out to vcbuild. All solution level and project level dependencies will then be resolved and built in-order as needed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号