ASP.NET MVC 调试,更新了 IIS Express 未使用的库
ASP.NET MVC、Visual Studio 2010、C#/.NET4。我使用 IIS Express 作为首选 Web 服务器,因为它更准确地反映了 IIS7 中的生产配置。但是,当我执行以下过程时,IIS Express 使用的库似乎没有更新。
- 运行应用程序,查找错误
- 停止 VS2010,修复错误
- 构建/运行
- 测试显示新代码未被使用
即使在 VS2010 中停止调试器后,IIS Express 仍继续运行,所以我假设它只是保留在以下情况下使用的二进制文件它最初是推出的。有没有办法让它使用更新的二进制文件?或者这是预期的行为?目前,我获取新二进制文件的唯一方法是完全退出 VS2010,然后重新加载项目/解决方案。即使从 IISExpress 系统托盘图标中选择“停止”似乎也没有实际帮助(它似乎并没有真正停止该进程)。
显然,每次关闭 VS2010 并重新加载解决方案是一个不太理想的工作流程。
编辑:该项目配置为从右键单击项目 -> 运行 IIS Express网络。项目 URL 不使用任何虚拟目录,它位于端口 60830 上的本地主机的根目录中。我想我记得之前在 F4 属性列表中看到过 IIS Express,但现在根本没有在那里列出。
ASP.NET MVC, Visual Studio 2010, C#/.NET4. I'm using IIS Express as the web server of choice, as it more accurately mirrors our production configurations in IIS7. However, when I go through following process, the libraries used by IIS Express don't seem to be updating.
- Run app, find bug
- Stop VS2010, fix bug
- Build/Run
- Testing reveals the new code is not being used
IIS Express continues to run even after stopping the debugger in VS2010, so I'm assuming it's just holding onto the binaries that were used when it was initially launched. Is there a way to get it to use the updated binaries? Or is this the expected behavior? Right now, the only way I can get the new binaries used is to completely exit VS2010 and then reload the project/solution. Even selecting "stop" from the IISExpress systray icon doesn't seem to actually help (it doesn't appear to actually stop the process).
Obviously closing VS2010 and reloading the solution each time is a less-than-ideal workflow.
EDIT: The project is configured to run IIS Express from right click project -> Web. The project URL does not use any virtual directories, it is at root of the local host on port 60830. I thought I remembered seeing IIS Express in the F4 properties listing before, it's not listed there at all right now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论