如果在“配置管理器”中无法添加新的“配置”,如下图
下拉之后,“新建”按钮无效果,则只能工程所在的目录找到后缀为 .vcxproj 的文件,我的文件是ZDemo.vcxproj。用记事本打开,如下
1>是Debug的
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Dynamic</UseOfMfc>
</PropertyGroup>
2>可以模仿Debug的方式写自己的配置 Debug_Local
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Local|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Dynamic</UseOfMfc>
</PropertyGroup>