I have a WPF client application that is connected to WCF Service. How can I set up my project so that in DEBUG configuration it points to the WCF Service in the solution and in RELEASE c开发者_开发知识库onfiguration it points to the WCF Service on the internet? Can I do some sort of App.Config transformations? It takes so much time to erase the service references and recreate them to point to the deployed WCF Service.
Just my thought, you can develop a facade class that can choose which service to call. And in that facade class, you can use #DEBUG macro to distinguish the code.
精彩评论