简体   繁体   English

无法编辑并继续进行MVC项目

[英]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_PROFILERCORECLR_ENABLE_PROFILINGCORECLR_PROFILER但我留在了那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编辑并继续VS2013 MVC项目不起作用 - Edit and Continue VS2013 MVC project does't work Visual Studio 2015 - 无法实时编译和编辑并继续工作 - Visual Studio 2015 - Can't get real time compile and edit and continue to work 如何在 Visual Studio 2008 和 ASP.Net MVC 中编辑和继续? - How to edit and continue in Visual Studio 2008 and ASP.Net MVC? 编辑并继续在VS 2010 / ASP.Net MVC 2中不起作用 - Edit and Continue does not Work in VS 2010 / ASP.Net MVC 2 在调试MVC 4项目时是否可以在Visual Studio 2010中编辑并继续? - Is it possible to Edit and Continue in Visual Studio 2010 while debugging an MVC 4 project? 安装MVC3后,我无法在Visual Studio 2010上创建或打开MVC2的项目 - After installing MVC3, I can't create or open projects for MVC2 on visual studio 2010 MVC 视图是否可以访问所有项目,即使它们未被视图所在的项目引用? - Can MVC Views access all projects even though they aren't referenced by the project where the views are? 无法编辑日期 - Can't edit Date 用户无法编辑/查看其他用户的记录。 如何在ASP.NET MVC中实现此目标 - The user can't edit/view the records of other users. How to achieve this in asp.net mvc 无法编辑或删除CSS文件。 (ASP.NET MVC) - Can't edit or delete CSS file. (ASP.NET MVC)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM