Sharepoint 功能依赖于环境(UAT、PROD)属性

发布于 2024-08-13 17:12:32 字数 192 浏览 3 评论 0原文

我正在为 MOSS 开发一项功能,它在 feature.xml 中存储一些特定于环境的配置数据(如连接字符串)。

我希望为每个环境都有一个单独的 .properties 文件,并使其在构建时自动替换适当的值到需要的地方(如 feature.xml)。 这可能吗?我可以使用什么工具(我想,NAnt?)

谢谢!

问候, 安东

I'm developing a feature for MOSS which stores some environment-specific config data in feature.xml (like connection string).

I would like to have a separate .properties file for each environment and make it automatically substitute appropriate values to where needed (like feature.xml) while building.
Is that possible and what tools can I use (I suppose, NAnt?)

Thank you!

Regards,
Anton

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

攒一口袋星星 2024-08-20 17:12:32

将所有这些值存储在网站集中的(隐藏)列表中不是更容易吗,这样您的解决方案就可以保持干净和环境。独立,允许通过 UI(甚至是 powershell)设置值,而不是将它们包含在您的解决方案中,恕我直言,这不是非常干净的架构/维护。

Wouldn't it be easier to just store all those values in a (hidden) list in the site collection, that way your solution stays clean and env. independend, allowing for values to be set through the UI (or powershell even) instead of including them in your solution, which IMHO isn't very clean architecture / maintenance wise.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文