VS2012 MSB8004 warning 解决

本文解决了一个常见的Visual Studio构建警告MSB8004,详细解释了为何输出目录缺少尾部斜杠会导致此警告,并提供了解决方案:在配置属性中,将输出目录的路径修改为以斜杠结尾。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(299,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
解决方法:

在输出目录或者中间目录后面增加反斜杠,例如修改为如下:

Configuration Properties->General->OutPut Directorty: Debug\

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值