VS 2013给出的操作无法完成.剃刀视图上的指针无效 [英] VS 2013 giving The operation could not be completed. Invalid pointer on Razor views

查看:90
本文介绍了VS 2013给出的操作无法完成.剃刀视图上的指针无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在系统上安装了VS 2015版本.我已经在计算机上安装了Visual Studio 2013 Update 4.但是现在,每当我尝试在VS 2013中打开任何cshtml(剃刀视图)时,都会出现以下错误:

I installed VS 2015 version on my system. I already had Visual studio 2013 update 4 installed on my machine. But now, whenever I try to open any cshtml ( razor view) in VS 2013, I get following error:

请向我建议解决方案.

推荐答案

对于安装Visual Studio 2015 Update 1之后更新了某些程序包后到达这里的任何人,这是它为我解决的问题:

For anyone arriving here after installing Visual Studio 2015 Update 1 and then updating some packages, here is what fixed it for me:

  1. 关闭Visual Studio
  2. 删除%LocalAppData%\ Microsoft \ VisualStudio \ 14.0 \ ComponentModelCache
  3. 重新打开Visual Studio

我在VS2015中收到此错误消息,该修复程序对我有用,因此它似乎适用于2013和2015.

I was getting this error message in VS2015 and the fix worked for me, so it seems to apply to 2013 and 2015.

我在另一个Stack Overflow问题上找到了解决方案: Visual Studio 2015 Broken Razor Intellisense .

I found the solution on another Stack Overflow question: Visual Studio 2015 Broken Razor Intellisense.

这篇关于VS 2013给出的操作无法完成.剃刀视图上的指针无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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