编辑并继续使用本地IIS [英] Edit and Continue using a Local IIS
问题描述
使用本地IIS 而不是IIS express进行调试时,是否可以在Visual Studio上启用编辑并继续选项?
Is it possible to have the Edit and Continue option enabled on Visual Studio when debugging using Local IIS instead of IIS express?
推荐答案
在IIS 10.0(Win 10)中工作:
Works in IIS 10.0 (Win 10):
In管理员命令行运行
In Administrator command line run
C:\Windows\System32\inetsrv>appcmd set apppool "DefaultAppPool" /+environmentVariables.add[@start,name='COMPLUS_ForceEnC',value='1']
(替换 DefaultAppPool
您使用的应用程序池名称)
(replace DefaultAppPool
with app pool name you use)
这将添加标签
<environmentVariables>
<add name="COMPLUS_ForceEnC" value="1" />
</environmentVariables>
进入 C:\ Windows \ System32 \inetsrv \ config适用于您的应用程序池的\applicationHost.config
,因此应用程序池进程始终以编辑和继续模式运行。
into C:\Windows\System32\inetsrv\config\applicationHost.config
for your app pool, so the app pool process always run in Edit and Continue mode.
更多关于 COMPLUS_ForceEnC
可以找到环境变量这里。
More on the COMPLUS_ForceEnC
environment variable can be found here.
参见 IIS配置参考
这篇关于编辑并继续使用本地IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!