I would like to change the default settings in VS 2019. Specifically, I want to change
C/C++ settings:
the default Conformance Mode setting from Yes(/permissive-) to No(/permissive)
the default Preprocessor Definitions setting from WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
to WIN32;_DEBUG;_CONSOLE;_USE_32BIT_TIME_T;%(PreprocessorDefinitions)
Configuration Properties:
the default Working Directory setting from $(ProjectDir) to ..
the default Include Directories setting from $(VC_IncludePath);$(WindowsSDK_IncludePath);
to C:\DS\TEST\src\CPP;C:\DS\TEST\src\Header;$(IncludePath)
I've made a Property Sheet with the following settings:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">;
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<IncludePath>C:\DS\TEST\src\CPP;C:\DS\TEST\src\Header;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<ConformanceMode>false</ConformanceMode>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_USE_32BIT_TIME_T;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<PropertyGroup Label="Debugging Properties">
<LocalDebuggerWorkingDirectory>..</LocalDebuggerWorkingDirectory>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<ItemGroup />
</Project>
When I create a new VS 2019 project I load this Property Sheet. When I open the Property Page for the project, the Configuration Properties, Include Directories and Working Directory, reflect the changes in my Property Sheet. The C/C++ settings, however, do not reflect the changes in my Property Sheet. The default settings are still there. If I change the settings in the Property Page to <inherit from parent or project defaults> for both settings the changes in my Property Sheet now show.
I would like for all 4 settings in my Property Sheet to reflect in the project Properties Page once I load the Property Sheet.
How can I accomplish this?