MSBuild 15.0 / VS2017不断重建所有源文件 [英] MSBuild 15.0/VS2017 continuously rebuilds all source files

查看:310
本文介绍了MSBuild 15.0 / VS2017不断重建所有源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS2017 C ++编译器似乎一直打开遥测生成,MSBuild正在检测生成的... \ APPDATA \ LOCAL \ MICROSOFT \VISUALSTUDIO \15.0 \ VCTOOLSTELEMETRY.DAT as在.obj文件生成
后丢失或更新。

the VS2017 C++ compiler appears to have telemetry generation turned on all the time and MSBuild is detecting the resulting ...\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\15.0\VCTOOLSTELEMETRY.DAT as missing or having been updated after the .obj file was generated.

我发现在VS2015中如何使用... \ SQM关闭它\OptIn注册表项(这适用于VS2015)但VS2017编译器忽略了这些设置。我已经使用procmon检查了正在访问的预期注册表项和
它们是 - 但是CL.exe仍然继续并创建VCTOOLSTELEMETRY.DAT文件。

I've found how this is supposed to be turned off in VS2015 using the ...\SQM\OptIn registry keys (and this works for VS2015) but the VS2017 compiler ignores the settings. I have checked using procmon that the expected registry keys are being accessed and they are - but CL.exe still goes ahead and create the VCTOOLSTELEMETRY.DAT file.

可以VS2017 / CL.exe是为了尊重SQM \OptIn注册表设置还是MSBuild.exe有一个排除项,以便它忽略VCTOOLSTELEMETRY.DAT文件?

Can VS2017/CL.exe be made to honour the SQM\OptIn registry settings or can MSBuild.exe have an exclusion so that it ignores VCTOOLSTELEMETRY.DAT files ?

推荐答案

嗨  rs97420,

Hi rs97420,

感谢您在此发帖。

似乎是...... \ SQM \OptIn注册表项的设置 不适用于Visual Studio 2017  15.6.0。它适用于VS 15.5.6。有人在MSVS中报告了它:

It seems the settings of ...\SQM\OptIn registry keys  not working from Visual Studio 2017 15.6.0 . It works in VS 15.5.6. Someone reported it in MSVS:

https://developercommunity.visualstudio.com/content/problem/210627/vctoolstelemetrydat-is-being-written-to-when-not-n.html

当前的解决方法是使用Visual Studio 15.5.7:

The current workaround is using Visual Studio 15.5.7:

https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of- vs2017#Installing-the-early-release

您可以投票并添加您对此反馈的评论。当有足够的社区投票并为此反馈添加评论时,产品团队成员将认真对待此反馈。

You can vote and add your comments for this feedback. When there are enough communities vote and add comments for this feedback, the product team member will take this feedback seriously.

希望这会有所帮助。


这篇关于MSBuild 15.0 / VS2017不断重建所有源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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