views:

26

answers:

1

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.

A: 

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

Jim Beam