vorrtex in the comments turns out to be correct. I lost sight of this solution after several experiments. I also forgot to mention that I used the xml conversion tasks in the .csproj file.
My final decision is as follows:
- In the Silverlight service client assembly, add WCF links as usual.
- Add ServiceReferences.Configuration.ClientConfig for each build configuration
- Add goals before / after building goal transformation in .csproj
- Add as a reference in the main Silverlight UI assembly.
- Build. The Silverlight web assembly creates an .xap for this configuration with the correct ServiceReferences.ClientConfig file.
source share