错误消息: changes are not allowed if the project wasn't build when debugging started
错误场景:VS2015调试网页的时候不能编辑
解决方法:把下面文档保存为脚本,执行,然后就可以在【VS2015中,调试网页的时候编辑内容了】
#set Edit n Continue variable (global... :/ )
setx /m COMPLUS_FORCEENC 1
#kill/restart existing app pools
iisreset
#force app pool to start up (and use the Edit & Continue var)
#you can download wget or curl (instead of start)
#if you don't want this to open up your default browser every time
start "http://localhost/urlForAspNetApp"
#clear Edit n Continue var
setx /m COMPLUS_FORCEENC ""