Statically link all dependences so that the end user will never be asked to install vc_redist.exe
See the question and my original answer on StackOverflowAdd a specific ClCompile property for the compilation configuration:
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
...
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
</Project>
Possible values are here: runtimeLibraryOption Enum (remove the "rt" prefix)
rtMultiThreaded 0 : Multi-threaded (/MT)
rtMultiThreadedDebug 1 : Multi-threaded Debug (/MTd)
rtMultiThreadedDebugDLL 3 : Multi-threaded Debug DLL (/MDd)
rtMultiThreadedDLL 2 : Multi-threaded DLL (/MD)
More info about MT / MD can be found here: /MD, /MT, /LD (Use Run-Time Library)