I created a basic MVC 6 site using .net5 beta7. If I start my project with F5, my statics from wwwroot are not available. I would get blank page in a browser and 404 in iis express log and browser console trying to access index.html. If I stop debugging, IIS session goes away and now no listener in a port. However, if I start debugging, then do some source modification and save it, after stopping the debugging session, IIS express does not go away, it reappears in a few seconds and now all my statics under wwwroot become available. Further more, now if I really want to try to access non existent file, I get a nice 404 page provided by IIS Express.
Can someone explain to me what is going on? Its almost like if a webroot during debugging session points somewhere else. And why IIS session reappears if I modify source during debugging and does not reappears otherwise? I understand about in memory compiling,its all great but should such seamed unrelated event like modifying source code have such a random side effect as IIS session active or not active after debugging?
Thank you.