Change the WCF address in Windows Universal App from the development environment to the production environment

2

I'm developing an application in Universal Windows App (for Windows 10, Windows 10 Mobile, etc.), which basically this application makes consumption of data that are in the service running in WCF.

It turns out that I have a unique solution where I have the WCF service and my Windows App. When I run this application in a development environment, everything runs perfectly, even up, because the service is running on a host location.

What would make it easier for me to do this was that by doing a Pulish of the service, the system automatically switched the server address settings to the production address. What in the WCF case I did

I just did not get it for the Windows App. I mean, I would like to re-point the address of the WCF service within this Windows App during the Deploying process.

Note: I've already managed to do this in a WebApp (Asp.MVC) where just changing web.config

  

My question is, how do I do this in a Windows 10 Windows App /   Windows Phone?

I know perfectly well that I could do this in the Visual Studio Add Reference process by just pointing to the production server's address. But in practice this is not very fluent

    
asked by anonymous 10.11.2015 / 09:46

1 answer

0

Hello,

I have a WCF test and another WCF, like you. I developed a WP8 application that has a settings screen, among other information has the WCF URI entry. Uri is defined in app.xaml.cs and is written to an xml file on the device's isostore. Every time I start the application I read the URI of the XML file. If you need to restart the settings rewrite the information defined in the app.xaml.cs.

I hope that helps you.

Abcs

: ioz

    
10.11.2015 / 18:59