如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

时间:2021-01-13 01:49:21

I've enabled Enable Edit and Continue on the Web Properties page and it's also enabled in my configuration, yet Visual Web Developer 2008 Express Edition refuses to allow me to edit source files of an ASP.NET MVC project. I can edit the aspx file with no problem though.

我在“Web属性”页面上启用了“启用编辑并继续”,并且在我的配置中也启用了它,但Visual Web Developer 2008 Express Edition拒绝允许我编辑ASP.NET MVC项目的源文件。我可以编辑aspx文件,但没有问题。

Any ideas what's wrong or what's missing?

任何想法有什么不对或缺少什么?

6 个解决方案

#1


2  

If you are targeting x64 or Any CPU on a 64 bit machine you cannot use edit and continue. It only works when you are targeting x32.

如果您要在64位计算机上定位x64或任何CPU,则无法使用编辑并继续。它仅在您定位x32时有效。

I set my Platform target to x32 for the Debug configuration for this reason.

出于这个原因,我将我的平台目标设置为x32以进行调试配置。

#2


2  

My conclusion is that it just doesn't work.

我的结论是,它不起作用。

#3


2  

Remember after ticking "Enable Edit and Continue" in your project properties to Save your changes before building and testing your app. I made this mistake which cost me more time than I care to share!

记住在项目属性中勾选“启用编辑并继续”以在构建和测试应用程序之前保存更改。我犯了这个错误,花了我更多的时间比我分享!

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

#4


1  

It works fine at last in Visual Studio 2010 (MVC 4), below are all required steps to do it.

它在Visual Studio 2010(MVC 4)中最后工作正常,下面是执行它所需的所有步骤。

I can change e.g. action code in controller (when application is "paused" or stopped at break point) and all changes are automatically used after "Continue" or in step by step debugging.

我可以改变,例如控制器中的操作代码(当应用程序“暂停”或在断点处停止时),所有更改将在“继续”或逐步调试后自动使用。

Tools > Options > Debuging > Edit and Continue

工具>选项>执行>编辑并继续

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Tools > Options > Debuging > General

工具>选项>执行>常规

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Build > Configuration Manager...

构建>配置管理器...

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

In Solution Explorer right click on main (web) project name > Properties

在解决方案资源管理器中,右键单击主(Web)项目名称>属性

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Change build output path to \bin

将构建输出路径更改为\ bin

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Source: Changes are not allowed if the assembly has not been loaded

来源:如果尚未加载程序集,则不允许更改

#5


0  

You have to enable this on two places. See this blog post about Edit and continue for Web Application Projects (WAP)

你必须在两个地方启用它。请参阅此博客文章关于编辑和继续Web应用程序项目(WAP)

#6


0  

To anyone running Vista 64 bit...

对任何运行Vista 64位的人来说......

It may be that the IDE is not ready for Edit and Continue (EnC) web apps on Vista 64 bit without a tweek.

可能是IDE还没有为Vista 64位上的编辑和继续(EnC)Web应用做好准备而没有调整。

My situation: Migrated Web App to Vista 64 bit. Set platform to x86, set EnC in Tools/Options & Web properties, Debug flag in Web.Config, Debug mode set in Build configuration, etc, etc.

我的情况:将Web App迁移到Vista 64位。将平台设置为x86,在工具/选项和Web属性中设置EnC,在Web.Config中设置Debug标志,在Build配置中设置调试模式等。

No joy - Could hit break points, inspect variables, etc, but could not EnC.

没有快乐 - 可以达到破发点,检查变量等,但不能进行EnC。

There were 7 Google hits on Msg "Changes are not allowed if the assembly has not been loaded". No new advice there for this situation though.

Msg上有7次Google点击“如果尚未加载程序集,则不允许更改”。但是对于这种情况没有新的建议。

After trying numerous things finally tried changing the Build output path from "bin\x86\debug" to "bin\".

尝试了很多事情后,最后尝试将Build输出路径从“bin \ x86 \ debug”更改为“bin”。

There was great joy across the land - Debug with EnC works now.

这片土地上充满了欢乐 - 现在使用EnC进行调试。

#1


2  

If you are targeting x64 or Any CPU on a 64 bit machine you cannot use edit and continue. It only works when you are targeting x32.

如果您要在64位计算机上定位x64或任何CPU,则无法使用编辑并继续。它仅在您定位x32时有效。

I set my Platform target to x32 for the Debug configuration for this reason.

出于这个原因,我将我的平台目标设置为x32以进行调试配置。

#2


2  

My conclusion is that it just doesn't work.

我的结论是,它不起作用。

#3


2  

Remember after ticking "Enable Edit and Continue" in your project properties to Save your changes before building and testing your app. I made this mistake which cost me more time than I care to share!

记住在项目属性中勾选“启用编辑并继续”以在构建和测试应用程序之前保存更改。我犯了这个错误,花了我更多的时间比我分享!

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

#4


1  

It works fine at last in Visual Studio 2010 (MVC 4), below are all required steps to do it.

它在Visual Studio 2010(MVC 4)中最后工作正常,下面是执行它所需的所有步骤。

I can change e.g. action code in controller (when application is "paused" or stopped at break point) and all changes are automatically used after "Continue" or in step by step debugging.

我可以改变,例如控制器中的操作代码(当应用程序“暂停”或在断点处停止时),所有更改将在“继续”或逐步调试后自动使用。

Tools > Options > Debuging > Edit and Continue

工具>选项>执行>编辑并继续

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Tools > Options > Debuging > General

工具>选项>执行>常规

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Build > Configuration Manager...

构建>配置管理器...

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

In Solution Explorer right click on main (web) project name > Properties

在解决方案资源管理器中,右键单击主(Web)项目名称>属性

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Change build output path to \bin

将构建输出路径更改为\ bin

如何在Visual Web Developer 2008 Express Edition和ASP.NET MVC中编辑和继续?

Source: Changes are not allowed if the assembly has not been loaded

来源:如果尚未加载程序集,则不允许更改

#5


0  

You have to enable this on two places. See this blog post about Edit and continue for Web Application Projects (WAP)

你必须在两个地方启用它。请参阅此博客文章关于编辑和继续Web应用程序项目(WAP)

#6


0  

To anyone running Vista 64 bit...

对任何运行Vista 64位的人来说......

It may be that the IDE is not ready for Edit and Continue (EnC) web apps on Vista 64 bit without a tweek.

可能是IDE还没有为Vista 64位上的编辑和继续(EnC)Web应用做好准备而没有调整。

My situation: Migrated Web App to Vista 64 bit. Set platform to x86, set EnC in Tools/Options & Web properties, Debug flag in Web.Config, Debug mode set in Build configuration, etc, etc.

我的情况:将Web App迁移到Vista 64位。将平台设置为x86,在工具/选项和Web属性中设置EnC,在Web.Config中设置Debug标志,在Build配置中设置调试模式等。

No joy - Could hit break points, inspect variables, etc, but could not EnC.

没有快乐 - 可以达到破发点,检查变量等,但不能进行EnC。

There were 7 Google hits on Msg "Changes are not allowed if the assembly has not been loaded". No new advice there for this situation though.

Msg上有7次Google点击“如果尚未加载程序集,则不允许更改”。但是对于这种情况没有新的建议。

After trying numerous things finally tried changing the Build output path from "bin\x86\debug" to "bin\".

尝试了很多事情后,最后尝试将Build输出路径从“bin \ x86 \ debug”更改为“bin”。

There was great joy across the land - Debug with EnC works now.

这片土地上充满了欢乐 - 现在使用EnC进行调试。