Sharepoint 功能依赖于环境(UAT、PROD)属性
我正在为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将所有这些值存储在网站集中的(隐藏)列表中不是更容易吗,这样您的解决方案就可以保持干净和环境。独立,允许通过 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.