Is it possible to have the Edit and Continue option enabled on Visual Studio when debugging using Local IIS instead of IIS express?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Works in IIS 10.0 (Win 10):
In Administrator command line run
C:\Windows\System32\inetsrv>appcmd set apppool "DefaultAppPool" /+environmentVariables.add[@start,name='COMPLUS_ForceEnC',value='1']
(replace DefaultAppPool
with app pool name you use)
This will add tag
<environmentVariables>
<add name="COMPLUS_ForceEnC" value="1" />
</environmentVariables>
into C:\Windows\System32\inetsrv\config\applicationHost.config
for your app pool, so the app pool process always run in Edit and Continue mode.
More on the COMPLUS_ForceEnC
environment variable can be found here.
See also IIS Configuration Reference