ASP.NET MVC アプリケーションがあり、アプリケーションが IIS で実行されている間にリアルタイムで変更できるファイルを含むフォルダーがいくつか含まれています。
.resx (コード生成なし) や.xml (カスタム コンテンツあり) などの拡張子を持つ特定のファイルを変更すると、アプリケーション プールが更新され、この動作は望ましくありませんが、 .cshtmlを変更するとプールが更新されません。 .
上記の「問題のある」ファイルを App_Data フォルダーに配置すると、プールは更新されませんが、他のフォルダーにも解決策があるかもしれません。
たとえば、アプリケーションにそのようなフォルダー構造がある場合:
App_Code
App_Data
- file1.resx // when its content changes the pool DOESN'T get refreshed
- files2.xml // when its content changes the pool DOESN'T get refreshed
- files3.cshtml // when its content changes the pool DOESN'T get refreshed
CustomFolder
- App_LocalResources
-- file1.resx // when its content changes the pool gets refreshed
-- files2.xml // when its content changes the pool gets refreshed
-- files3.cshtml // when its content changes the pool DOESN'T get refreshed
特定のファイルまたはファイルの種類が変更された場合に IIS アプリケーション プールが更新されないようにする方法は?
助けてくれてありがとう。