WPF 架构与创建独特的构建
我还没有找到正确的编程架构: -WPF应用程序 -每个版本对于每个客户来说都是独一无二的 - 代码和 app.config 文件中每个客户都有唯一的变量 - 理想情况下,每个客户还将有唯一的部署 URL
在这种情况下构建项目文件的最佳方法是什么?我使用的是 VS 2008 Pro。我可以创建上述所有内容并使用 ClickOnce 进行部署,但它是我需要帮助的每个客户的唯一变量。
I haven't figured out the correct programming architecture for:
-WPF Application
-Each build will be unique for each customer
-There will be unique variables for each customer in both code and the app.config file
-Ideally, there will also be unique deployment URLs for each customer
What is the best way to build the project file given this scenario? Im using VS 2008 Pro. I can create all of the above and use ClickOnce for deployment, but its the unique variables for each customer that I need help with.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是 100% 完全符合我的需要,但已经很接近了。本文解释了如何使用多个配置文件并在预构建过程中分配一个配置文件。它仍然不允许我像我想要的那样设置代码片段,但它几乎足够接近: http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWithPreBuildEvents.aspx
It's not 100% exactly what I need, but it's close. This article has an explanation of how to work with multiple config files and assign one during the pre-build process. It still doesn't allow me to set pieces of code like I would like, but it's almost close enough: http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWithPreBuildEvents.aspx