Visual Studio 2013,调试中未显示更改 [英] Visual Studio 2013, changes not showing in debug

查看:37
本文介绍了Visual Studio 2013,调试中未显示更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近已升级到 Visual Studio 2013 Pro,但遇到了一些初期问题.

Have recently upgraded to Visual Studio 2013 Pro and am having some teething problems.

主要是如果我在 Web 窗体的 .aspx 页面或 MVC 的 .cshtml 页面中更改任何 HTML 或 CSS,这些更改并不总是反映在我调试时正在处理的页面上并且不会出现无论我刷新或清除缓存的次数如何.
我正在使用 Web Essentials,它应该将更改直接放在页面上,并且必须刷新页面,但这似乎也不起作用.

Primarily if I change any HTML or CSS in either a .aspx page for Web Forms or .cshtml for MVC, the changes aren't always reflected on the page I'm working on when I debug it and don't appear not matter how times I refresh or clear my cache.
Am using web essentials, which should put the changes straight on the page with have to refresh the page but this doesn't seem to be working either.

偶尔,但并非总是如此,如果我停止调试,更改后面的代码,然后再次运行项目,它说它运行的代码版本与正在调试的代码版本不同,我必须停止它,重建然后调试.

Also occasionally, but not always, if I stop debugging, change the code behind then run the project again it says it's running from a different version of the code than the one being debugged and I have to stop it, rebuild and then debug.

在以前版本的 Visual Studio 上从未遇到过这些问题.

Have never had these problems on previous version of Visual Studio.

有什么建议吗?

推荐答案

转到工具-选项

在项目和解决方案 -> 构建和运行下选择运行时,项目过期时"下的始终构建"

Under Projects and solution -> Build and Run select "Always build" under "On Run, when projects are out of date"

这篇关于Visual Studio 2013,调试中未显示更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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