Visual Studio 2019 的属性窗口没有Microsoft.CPP.x64.user

Visual Studio 2019 的属性窗口没有Microsoft.CPP.x64.user

一、问题描述

在这里插入图片描述
很多人在调VS设置,懒得每次新建项目都要重新调整,想在Microsoft.CPP.x64.user中,一劳永逸的修改的时候,发现没有Microsoft.CPP.x64.user这一个选项。

二、问题解决方法

1、打开到正确的文件位置

在这里插入图片描述

这是我的目录:C:\Users\29810\AppData\Local\Microsoft\MSBuild\v4.0
注:有时候可能没有找到MSBuild,这时候就需要你们手动创建一个文件夹叫MSBuild,再在里面新建一个文件夹v4.0。

2、根据上面那个图补全少的文件

Microsoft.Cpp.ARM.user.props

<?xml version="1.0" encoding="utf-8"?> 
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 <ImportGroup Label="PropertySheets">
 </ImportGroup>
 <PropertyGroup Label="UserMacros" />
 <PropertyGroup />
 <ItemDefinitionGroup />
 <ItemGroup />
</Project>

Microsoft.Cpp.Win32.user.props

<?xml version="1.0" encoding="utf-8"?> 
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 <ImportGroup Label="PropertySheets">
 </ImportGroup>
 <PropertyGroup Label="UserMacros" />
 <PropertyGroup />
 <ItemDefinitionGroup />
 <ItemGroup />
</Project>

Microsoft.Cpp.x64.user.props

下面的opencv路径可以清除掉。还有下面这里的opencv_world411d.lib也删除掉。不删除应该也行,到时候在vs里面配置完成后就会自动修改了。

<AdditionalDependencies>opencv_world411d.lib;%(AdditionalDependencies)</AdditionalDependencies>

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 <ImportGroup Label="PropertySheets">
 </ImportGroup>
 <PropertyGroup Label="UserMacros" />
 <PropertyGroup>
  <IncludePath>D:\opencv\opencv\build\include;D:\opencv\opencv\build\include\opencv2;$(IncludePath)</IncludePath>
  <LibraryPath>D:\opencv\opencv\build\x64\vc14\lib;$(LibraryPath)</LibraryPath>
 </PropertyGroup>
 <ItemDefinitionGroup>
  <Link>
   <AdditionalDependencies>opencv_world411d.lib;%(AdditionalDependencies)</AdditionalDependencies>
  </Link>
 </ItemDefinitionGroup>
 <ItemGroup />
</Project>

3、关闭VS重新打开。

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 6
    评论
microsoft.cpp.win32.user.props 文件是一个用于 Microsoft Visual Studio属性文件,用于配置 Windows 用户界面应用程序的编译和链接选项。 要下载 microsoft.cpp.win32.user.props 文件,可以按照以下步骤进行操作: 1. 首先,打开你的互联网浏览器,然后在搜索引擎搜索“microsoft.cpp.win32.user.props 下载”。 2. 在搜索结果列表,选择一个可信任的来源,如 Microsoft 官方网站或其他软件下载网站。 3. 确保你正在访问的网站是安全的,并提供了合法和可靠的下载链接。 4. 找到包含 microsoft.cpp.win32.user.props 文件的下载页面,并点击下载链接。 5. 一旦下载完成,你可以选择将文件保存到你的计算机上的任意位置。 6. 在 Visual Studio 使用此文件,你需要将其添加到你的项目。打开你的项目,然后右键点击项目名称,选择“属性”选项。 7. 在属性窗口,选择“配置属性”-“C/C++”-“常规”选项卡。在右侧的“附加包含目录”字段,点击右边的“编辑”按钮。 8. 在弹出的对话框,点击右侧的“…”按钮,选择你保存 microsoft.cpp.win32.user.props 文件的文件夹。 9. 点击“确定”按钮,然后再次点击“确定”按钮关闭属性窗口。 现在,你的项目将使用 microsoft.cpp.win32.user.props 文件配置的编译和链接选项进行构建和运行。记得在需要时更新此文件,以获得最新的选项和功能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

风吹落叶花飘荡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值