c++ - 编辑并继续在 VS2015 Update 3 (x64) 中不起作用

标签 c++ visual-studio visual-studio-2015 edit-and-continue

按照这个 related question 安装 Vs2015 update 3 经过一番噩梦之后,我重建了我的 MFC C++ 项目以查看更新如何执行,只是发现“编辑并继续”不再起作用!具体来说,对任何文件进行任何更改并使用调试/应用代码更改我得到以下结果;

myfile.CPP ......\common\myfile.CPP(1): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "\cpp\common\stdafx.h"' to your source? Project : error (null) : Build errors occurred.

源文件中第一个包含的是

#include "\cpp\common\StdAfx.h"

这在更新 2 下的大部分时间都有效,但编辑并继续失败并报告它已合理地定期成功。我安装此更新的唯一原因是它应该可以解决此问题,但现在它已完全损坏,我正在考虑完全卸载并在周末重新安装 VS2015 更新 2。

还有其他人遇到这个问题并有解决方案吗?可能是一个狡猾的安装,因为即使在完整的 ISO 安装中,安装程序也因丢失文件而失败,我不得不跳过两个部分。鉴于这是一个发行版而不是候选发行版,QA 似乎很糟糕,我不明白为什么发行版会包含任何测试版功能。下面是 VS2015 的详细信息;

Microsoft Visual Studio Professional 2015 Version 14.0.25421.03 Update 3 Microsoft .NET Framework Version 4.6.01055

Installed Version: Professional

LightSwitch for Visual Studio 2015 00325-60000-80195-AA437 Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015 00325-60000-80195-AA437 Microsoft Visual Basic 2015

Visual C# 2015 00325-60000-80195-AA437 Microsoft Visual C# 2015

Visual C++ 2015 00325-60000-80195-AA437 Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package 7.0.20622.1 Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11106.0 ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0 For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.40314.0 For additional information, visit http://www.asp.net/

Common Azure Tools 1.8 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

InstallShield Limited Edition InstallShield. For more information visit the Flexera Software website at http://www.FlexeraSoftware.com. Copyright © 2015 Flexera Software LLC. All Rights Reserved.

JavaScript Language Service 2.0 JavaScript Language Service

JavaScript Project System 2.0 JavaScript Project System

Microsoft Azure Mobile Services Tools 1.4 Microsoft Azure Mobile Services Tools

PreEmptive Analytics Visualizer 1.2 Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 14.0.60519.0 Microsoft SQL Server Data Tools

TypeScript 1.8.34.0 TypeScript tools for Visual Studio

Visual Assist For more information about Visual Assist, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2016 Whole Tomato Software, Inc.

Visual Commander 2.3 For more information about Visual Commander, see the website at https://vlasovstudio.com/visual-commander/. Copyright (c) 2013-2015 Vlasov Studio.

Visual Studio Tools for Universal Windows Apps 14.0.25420.01 The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

(对于这个问题的粗暴性质,我深表歉意,但我也将其作为对那些考虑安装此更新的人的警告)

最佳答案

继关于 MSDN here 的相同讨论之后一个breaking change in update 3如下

Allow Precompiling (Native only): The debug option Debug > Options > General > Allow Precompiling (Native only) is no longer supported with Visual Studio 2015 Update 3 and the default debugger. This is a legacy setting for a marginal performance improvement that has no functional impact.

禁用上述并重建所有修复编辑并继续。

关于c++ - 编辑并继续在 VS2015 Update 3 (x64) 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38273128/

相关文章:

c++ - const char * 与 const wchar_t* (串联)

c++ - 自动为 Qt 配置套件

c++ - 为什么变量在 C++ 中的 for 循环后没有更新?

C++ - string.replace 不起作用

c# - 如何让套接字在 Unity 和 UWP 应用程序之间工作?

windows - 测量程序的 CPU/RAM 使用情况

asp.net-mvc - 如何在 aspnetusers 表中获取自定义字段?

c - 在C中保存一个指针地址

visual-studio - Visual Studio 2015 : Ctrl+Shift+8 (View. PopBrowseContext) 导航不工作?

javascript - VS2015 - 无法在 Cordova 项目中的 JavaScript 中输入命令