简体   繁体   English

asp.net App_LocalResources文件夹

[英]asp.net App_LocalResources folder

I would like to have App_LocalResources folder outside web application folder, so that I could deploy updated resx files and web app. 我想将App_LocalResources文件夹放置在Web应用程序文件夹之外,以便部署更新的resx文件和Web应用程序。 independent of each other. 彼此独立。

Reasons: We do not want to change current deploy tool. 原因:我们不想更改当前的部署工具。

Any way to achieve this? 有什么办法可以做到这一点?

Way the default resource manager works in asp.net is it picks the resex entries for the respective aspx file from the App_LocalResources folder in the current directory. 默认资源管理器在asp.net中的工作方式是,它从当前目录的App_LocalResources文件夹中为相应的aspx文件选择resex条目。 As far as I know this behavior is not something you can configure (ie to ask it to pick entries from a different folder!) But there is a workaround, that you could implement your own Resource Manager and let it picks entries from a location you specify it to. 据我所知,这种行为不是您可以配置的(即要求它从另一个文件夹中选择条目!),但是有一种解决方法,您可以实现自己的资源管理器并让它从您所处的位置中选择条目。指定它。 Found this and this while googling. 在搜寻时发现了这个这个 Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM