简体   繁体   中英

Visual Studio - C# project appearing with C++ Syntax

My Visual Studio 2015 community installation is suddenly displaying C# concepts on the VS GUI in a C++-style syntax. For example, this is a brand new C# app on .Net framework 4.5.2: Note the way the class name is shown in the stack frame.

It is also displaying class names with a caret (^) character suffix, and showing "nullptr" for null objects instead of "null" (in preview windows).

Any ideas as to what could be causing this? I was happily coding this app without any weird behavior until about half an hour ago. This behavior also occurs for applications with no recent changes made to them, so I can only assume I hit a strange key combination in Visual Studio and changed a setting by mistake.

Here is an example stack trace. Note how the "Language" column shows "C++": stack trace

I managed to get this working after trying every single solution I could find from Google searches. The steps that seem to have fixed it:

  1. Completely remove VS 2015 Community
  2. Complete re-install of VS 2015 Community
  3. The registry fix here: link , specifically the section on the "0xfffffffe2e276b55" registry key.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM