How to set up Runtime Library (MT / MD) configuration in MSBuild?

I am creating an old external project. Say I don’t have a visual IDE - only MSbuild (for example, the one you get in AppVeyour). How to transfer MD \ MT to MSbuild?

Currently, to compile the VS2010 project using VS2015, I use: ${MSBUILD_COMMAND} solution.sln /p:PlatformToolset=v140 /p:configuration=Release /p:platform "x64" /project "project-lib" However, I would also like to set the runtime library configuration from the MSbuild command. How to do it?

+4
source share

All Articles