“Internal error in the expression evaluator”

后端 未结 9 1541
梦谈多话
梦谈多话 2020-12-23 13:09

I\'ve encountered a problem in expression evaluator of visual studio 2015 that says \"Internal error in the expression evaluator\", after some investigations I found that th

9条回答
  •  被撕碎了的回忆
    2020-12-23 13:46

    Just extending on the solution provided by Patrick Nelson. For Visual Studio 2015+ as inquired, the steps are as follows.

    If you're debugging at the moment, this option will be unavailable. Stop the debugger.

    Go to Tools -> Options

    VS Options

    and here under the Options select Debug -> General and scroll down to find the ...legacy C# expression.. option:

    VS Options Debug Legacy options

    More information is provided here:

    Switching to Managed Compatibility Mode

    Note: There are also some serious drawbacks that occur from switching to the legacy mode. Especially Runtime Reflection of the implemented Interfaces becomes almost an impossibility or extremely inconvenient. There are also other Reflection methods which will throw errors.

提交回复
热议问题