Modify ServiceReferences.ClientConfig file using bat before deploying SilverLight solution -


my team developing silverlight application , switching our solution https on our server use http locally. so, in xap file results when building app there servicereferences.clientconfig having configuration web services referenced in project. issue have configuration when running locally , have other configuration when deploy it. decided alter servicereferences.clientconfig before building because otherwise encapsulated in .xap file. using msbuild in bat file deploy solution. config file:

<configuration>     <system.servicemodel>         <bindings>             <custombinding>                 <binding name="custombinarybinding">                   <binarymessageencoding />                   <httptransport maxreceivedmessagesize="2147483647" maxbuffersize="2147483647" />                 </binding>             </custombinding>         </bindings>         <client>           <endpoint address="../../platformadminutil.svc"                binding="custombinding" bindingconfiguration="custombinarybinding"                contract="platformadminutil.platformadminutil" name="custombinding_platformadminutil" />          </client>     </system.servicemodel> </configuration> 

i wish change <httptransport/> tag <httpstransport/>. i'm new on scripting in bat files need on script manage this.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -