[英]Can't edit and continue on MVC projects
I've been able to edit and continue for more than a year. 我已经可以编辑并继续超过一年了。 I don't know what unfortunate mistake I've made but I'm now not able of editing the code and continuing anymore, as when I try I get the "Changes are not allowed in the following cases".
我不知道我犯了什么不幸的错误,但是现在我无法编辑代码并继续操作,因为当我尝试时,出现“在以下情况下不允许更改”。
I've been googling and changing settings for more than half a day straight now! 我一直在Google搜索和更改设置超过半天了! x86, enable and disable, repair VS, 2015 and 2017 versions, check the project settings... As far as I can tell I've touched every single switch I can think of and I still can't edit and continue!
x86,启用和禁用,修复VS,2015和2017版本,检查项目设置...据我所知,我已经触摸了我能想到的每个开关,但仍然无法编辑并继续!
I've noticed though that I can edit and continue on a simple console program (Console.Write and .Read sort of thing) but not on a simple MVC project (the one that comes with the MVC scaffolding) so I'm now thinking is something to do with MVC. 我注意到尽管可以编辑并继续使用简单的控制台程序(Console.Write和.Read之类的东西),但是不能在简单的MVC项目(MVC脚手架附带的项目)上继续编辑,所以我现在在想与MVC有关。
Any thoughts? 有什么想法吗? It's happening even with projects that I could edit and continue with in the past!
即使过去我可以编辑并继续进行的项目也正在发生!
Following Karthik recommendation and https://stackoverflow.com/a/27672935/3397630 I just had to remove COR_ENABLE_PROFILING
from the system and user variables! 按照Karthik的建议和https://stackoverflow.com/a/27672935/3397630,我只需要从系统变量和用户变量中删除
COR_ENABLE_PROFILING
!
There are a few more similar entries like COR_PROFILER
, CORECLR_ENABLE_PROFILING
and CORECLR_PROFILER
but I left those there. 还有更多类似的条目,例如
COR_PROFILER
, CORECLR_ENABLE_PROFILING
和CORECLR_PROFILER
但我留在了那里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.