gpt4 book ai didi

asp.net - 在部署时复制 App_GlobalResources

转载 作者:行者123 更新时间:2023-12-02 13:07:10 24 4
gpt4 key购买 nike

我有一个 ASP.NET Web 应用程序,之前是使用 VS2008 的发布功能发布的。

最近我切换到 VS2008 的“Web 部署项目”。部署时,我注意到 ~/App_GlobalResources 目录不再复制到构建时的发布文件夹中。

如何确保 App_GlobalResources 目录被复制?

最佳答案

Web 部署项目使用 aspnet_compiler.exe。引用自documentation :

These files are compiled into assemblies and placed in the Bin directory. No App_GlobalResources subdirectory is created under the main output directory. If the configuration file specifies appliesTo="All", .resx and .resources files are copied to the output directories. They are not copied if they are referenced by a BuildProvider.

所有资源都被编译成程序集并放入bin文件夹中。这就是 Web 部署项目的设计方式。

关于asp.net - 在部署时复制 App_GlobalResources,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1855831/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com