How do I get a .Net Core website hosted in IIS to start immediately?

后端 未结 3 1781
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-18 10:41

This blog post explains how when a .Net Core website is hosted in IIS, the website code does not actually get run until the first request comes in to IIS:

https://we

3条回答
  •  天命终不由人
    2021-01-18 11:16

    I tried the solution above by @eric, and it didn't work by itself. Adding this to my .CSPROJ file (in addition to his suggestions) finally did the trick:

    
        true
        false
    
    

提交回复
热议问题