Microsoft.Cpp.Win32.user.props 文件丢失

Microsoft.Cpp.Win32.user.props file missing

几天前,我通过全新安装设置了一个Windows 10,然后在上面安装了Visual Studio 2019 Community。

现在,我想自定义 Microsoft.Cpp.Win32.user.propsMicrosoft.Cpp.x64.user.props 文件,为我的所有 VC++ 项目添加额外的包含路径。

但是我在我的全新机器上找不到这些文件。 它们应该位于 %localappdata%\Microsoft\MSBuild\v4.0,但没有 MSBuild 目录。

这是否意味着 Visual Studio 安装失败,或者我需要一些额外的程序来创建默认的 *.user.props 文件? 我已经确认 VC++ 可以构建一个简单的 hello-world 项目。

编辑:附上 属性 管理器的屏幕截图。没有用户 属性 sheet.

根据 Microsoft 的说法,VS 2019 不再默认创建 .props 个文件。

来自Cannot see Microsoft.Cpp.Win32.user in Property Manager

The behavior is intended. Visual Studio 2019 will not create .user files anymore. But if .user files already exist, projects will automatically import them.