Microsoft.Cpp.Win32.user.props 文件丢失 [英] Microsoft.Cpp.Win32.user.props file missing

查看:32
本文介绍了Microsoft.Cpp.Win32.user.props 文件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

A few days ago, I set up a Windows 10 by clean installation and then installed Visual Studio 2019 Community on it.

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

Now, I want to customize Microsoft.Cpp.Win32.user.props and Microsoft.Cpp.x64.user.props files to add additional include paths for all my VC++ projects.

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

But I can't find these files on my brand-new machine. They should be located at %localappdata%\Microsoft\MSBuild\v4.0, but there is no MSBuild directory.

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

Does it mean that the installation of Visual Studio failed, or do I need some additional procedures to create default *.user.props files? I've confirmed that the VC++ can build a simple hello-world project.

附上物业经理的屏幕截图.没有用户属性表.

Attached a screenshot of the Property Manager. There is no user property sheet.

推荐答案

根据微软的说法,VS 2019 默认不再创建 .props 文件.

According to Microsoft, VS 2019 no longer creates the .props files by default.

来自 看不到微软.属性管理器中的 Cpp.Win32.user:

该行为是有意为之.Visual Studio 2019 将不再创建 .user 文件.但是如果 .user 文件已经存在,项目会自动导入它们.

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

这篇关于Microsoft.Cpp.Win32.user.props 文件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆